Home
last modified time | relevance | path

Searched refs:old_dentry (Results 1 – 25 of 42) sorted by relevance

12

/fs/debugfs/
Dinode.c455 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, in debugfs_rename() argument
467 if (!old_dentry->d_inode || old_dentry == trap || in debugfs_rename()
468 d_mountpoint(old_dentry)) in debugfs_rename()
475 old_name = fsnotify_oldname_init(old_dentry->d_name.name); in debugfs_rename()
477 error = simple_rename(old_dir->d_inode, old_dentry, new_dir->d_inode, in debugfs_rename()
483 d_move(old_dentry, dentry); in debugfs_rename()
485 old_dentry->d_name.name, S_ISDIR(old_dentry->d_inode->i_mode), in debugfs_rename()
486 NULL, old_dentry); in debugfs_rename()
490 return old_dentry; in debugfs_rename()
/fs/sysfs/
Ddir.c799 struct dentry *old_dentry = NULL, *new_dentry = NULL; in sysfs_rename_dir() local
810 old_dentry = sysfs_get_dentry(sd); in sysfs_rename_dir()
811 if (IS_ERR(old_dentry)) { in sysfs_rename_dir()
812 error = PTR_ERR(old_dentry); in sysfs_rename_dir()
813 old_dentry = NULL; in sysfs_rename_dir()
817 parent = old_dentry->d_parent; in sysfs_rename_dir()
843 d_move(old_dentry, new_dentry); in sysfs_rename_dir()
850 dput(old_dentry); in sysfs_rename_dir()
862 struct dentry *old_dentry = NULL, *new_dentry = NULL; in sysfs_move_dir() local
874 old_dentry = sysfs_get_dentry(sd); in sysfs_move_dir()
[all …]
/fs/jffs2/
Ddir.c261 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument
263 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_inode->i_sb); in jffs2_link()
264 struct jffs2_inode_info *f = JFFS2_INODE_INFO(old_dentry->d_inode); in jffs2_link()
274 if (S_ISDIR(old_dentry->d_inode->i_mode)) in jffs2_link()
278 type = (old_dentry->d_inode->i_mode & S_IFMT) >> 12; in jffs2_link()
286 old_dentry->d_inode->i_nlink = ++f->inocache->pino_nlink; in jffs2_link()
288 d_instantiate(dentry, old_dentry->d_inode); in jffs2_link()
290 atomic_inc(&old_dentry->d_inode->i_count); in jffs2_link()
782 static int jffs2_rename (struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename() argument
820 type = (old_dentry->d_inode->i_mode & S_IFMT) >> 12; in jffs2_rename()
[all …]
/fs/
Dnamei.c2378 int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) in vfs_link() argument
2380 struct inode *inode = old_dentry->d_inode; in vfs_link()
2403 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link()
2409 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link()
2512 static int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry, in vfs_rename_dir() argument
2523 error = inode_permission(old_dentry->d_inode, MAY_WRITE); in vfs_rename_dir()
2528 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_dir()
2537 if (d_mountpoint(old_dentry)||d_mountpoint(new_dentry)) in vfs_rename_dir()
2540 error = old_dir->i_op->rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_dir()
2551 d_move(old_dentry,new_dentry); in vfs_rename_dir()
[all …]
Dlibfs.c253 int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in simple_link() argument
255 struct inode *inode = old_dentry->d_inode; in simple_link()
306 int simple_rename(struct inode *old_dir, struct dentry *old_dentry, in simple_rename() argument
309 struct inode *inode = old_dentry->d_inode; in simple_rename()
310 int they_are_dirs = S_ISDIR(old_dentry->d_inode->i_mode); in simple_rename()
/fs/minix/
Dnamei.c96 static int minix_link(struct dentry * old_dentry, struct inode * dir, in minix_link() argument
99 struct inode *inode = old_dentry->d_inode; in minix_link()
188 static int minix_rename(struct inode * old_dir, struct dentry *old_dentry, in minix_rename() argument
192 struct inode * old_inode = old_dentry->d_inode; in minix_rename()
200 old_de = minix_find_entry(old_dentry, &old_page); in minix_rename()
/fs/sysv/
Dnamei.c119 static int sysv_link(struct dentry * old_dentry, struct inode * dir, in sysv_link() argument
122 struct inode *inode = old_dentry->d_inode; in sysv_link()
214 static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry, in sysv_rename() argument
217 struct inode * old_inode = old_dentry->d_inode; in sysv_rename()
225 old_de = sysv_find_entry(old_dentry, &old_page); in sysv_rename()
/fs/ufs/
Dnamei.c167 static int ufs_link (struct dentry * old_dentry, struct inode * dir, in ufs_link() argument
170 struct inode *inode = old_dentry->d_inode; in ufs_link()
273 static int ufs_rename(struct inode *old_dir, struct dentry *old_dentry, in ufs_rename() argument
276 struct inode *old_inode = old_dentry->d_inode; in ufs_rename()
284 old_de = ufs_find_entry(old_dir, old_dentry, &old_page); in ufs_rename()
/fs/affs/
Dnamei.c386 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in affs_link() argument
388 struct inode *inode = old_dentry->d_inode; in affs_link()
397 affs_rename(struct inode *old_dir, struct dentry *old_dentry, in affs_rename() argument
405 (u32)old_dir->i_ino, (int)old_dentry->d_name.len, old_dentry->d_name.name, in affs_rename()
419 bh = affs_bread(sb, old_dentry->d_inode->i_ino); in affs_rename()
/fs/ext2/
Dnamei.c180 static int ext2_link (struct dentry * old_dentry, struct inode * dir, in ext2_link() argument
183 struct inode *inode = old_dentry->d_inode; in ext2_link()
288 static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry, in ext2_rename() argument
291 struct inode * old_inode = old_dentry->d_inode; in ext2_rename()
299 old_de = ext2_find_entry (old_dir, &old_dentry->d_name, &old_page); in ext2_rename()
/fs/hfs/
Ddir.c294 static int hfs_rename(struct inode *old_dir, struct dentry *old_dentry, in hfs_rename() argument
306 res = hfs_cat_move(old_dentry->d_inode->i_ino, in hfs_rename()
307 old_dir, &old_dentry->d_name, in hfs_rename()
311 (btree_key *)&HFS_I(old_dentry->d_inode)->cat_key, in hfs_rename()
/fs/ocfs2/
Dnamei.c602 static int ocfs2_link(struct dentry *old_dentry, in ocfs2_link() argument
607 struct inode *inode = old_dentry->d_inode; in ocfs2_link()
616 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_link()
1003 struct dentry *old_dentry, in ocfs2_rename() argument
1009 struct inode *old_inode = old_dentry->d_inode; in ocfs2_rename()
1035 old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1036 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_rename()
1102 status = ocfs2_remote_dentry_delete(old_dentry); in ocfs2_rename()
1131 status = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_rename()
1132 old_dentry->d_name.len, in ocfs2_rename()
[all …]
/fs/ubifs/
Djournal.c899 const struct dentry *old_dentry, in ubifs_jnl_rename() argument
907 const struct inode *old_inode = old_dentry->d_inode; in ubifs_jnl_rename()
915 old_dentry->d_name.len, old_dentry->d_name.name, in ubifs_jnl_rename()
924 dlen2 = UBIFS_DENT_NODE_SZ + old_dentry->d_name.len + 1; in ubifs_jnl_rename()
963 &old_dentry->d_name); in ubifs_jnl_rename()
966 dent2->nlen = cpu_to_le16(old_dentry->d_name.len); in ubifs_jnl_rename()
967 memcpy(dent2->name, old_dentry->d_name.name, old_dentry->d_name.len); in ubifs_jnl_rename()
968 dent2->name[old_dentry->d_name.len] = '\0'; in ubifs_jnl_rename()
1018 dent_key_init(c, &key, old_dir->i_ino, &old_dentry->d_name); in ubifs_jnl_rename()
1019 err = ubifs_tnc_remove_nm(c, &key, &old_dentry->d_name); in ubifs_jnl_rename()
Ddir.c510 static int ubifs_link(struct dentry *old_dentry, struct inode *dir, in ubifs_link() argument
514 struct inode *inode = old_dentry->d_inode; in ubifs_link()
967 static int ubifs_rename(struct inode *old_dir, struct dentry *old_dentry, in ubifs_rename() argument
971 struct inode *old_inode = old_dentry->d_inode; in ubifs_rename()
978 int old_sz = CALC_DENT_SIZE(old_dentry->d_name.len); in ubifs_rename()
995 "dir ino %lu", old_dentry->d_name.len, old_dentry->d_name.name, in ubifs_rename()
1088 err = ubifs_jnl_rename(c, old_dir, old_dentry, new_dir, new_dentry, in ubifs_rename()
/fs/ncpfs/
Ddir.c210 ncp_force_rename(struct inode *old_dir, struct dentry* old_dentry, char *_old_name, in ncp_force_rename() argument
215 struct inode *old_inode = old_dentry->d_inode; in ncp_force_rename()
1109 static int ncp_rename(struct inode *old_dir, struct dentry *old_dentry, in ncp_rename() argument
1118 old_dentry->d_parent->d_name.name, old_dentry->d_name.name, in ncp_rename()
1126 ncp_age_dentry(server, old_dentry); in ncp_rename()
1131 old_dentry->d_name.name, old_dentry->d_name.len, in ncp_rename()
1148 error = ncp_force_rename(old_dir, old_dentry, __old_name, in ncp_rename()
1155 old_dentry->d_name.name,new_dentry->d_name.name); in ncp_rename()
/fs/fat/
Dnamei_msdos.c446 struct dentry *old_dentry, in do_msdos_rename() argument
459 old_inode = old_dentry->d_inode; in do_msdos_rename()
619 static int msdos_rename(struct inode *old_dir, struct dentry *old_dentry, in msdos_rename() argument
628 err = msdos_format_name(old_dentry->d_name.name, in msdos_rename()
629 old_dentry->d_name.len, old_msdos_name, in msdos_rename()
642 err = do_msdos_rename(old_dir, old_msdos_name, old_dentry, in msdos_rename()
/fs/9p/
Dvfs_inode.c676 v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry, in v9fs_vfs_rename() argument
689 old_inode = old_dentry->d_inode; in v9fs_vfs_rename()
691 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_rename()
695 olddirfid = v9fs_fid_clone(old_dentry->d_parent); in v9fs_vfs_rename()
1092 v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link() argument
1101 old_dentry->d_name.name); in v9fs_vfs_link()
1103 oldfid = v9fs_fid_clone(old_dentry); in v9fs_vfs_link()
/fs/ecryptfs/
Dinode.c431 static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir, in ecryptfs_link() argument
440 file_size_save = i_size_read(old_dentry->d_inode); in ecryptfs_link()
441 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_link()
455 old_dentry->d_inode->i_nlink = in ecryptfs_link()
456 ecryptfs_inode_to_lower(old_dentry->d_inode)->i_nlink; in ecryptfs_link()
464 d_drop(old_dentry); in ecryptfs_link()
603 ecryptfs_rename(struct inode *old_dir, struct dentry *old_dentry, in ecryptfs_rename() argument
612 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_rename()
/fs/bfs/
Ddir.c221 static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry, in bfs_rename() argument
231 old_inode = old_dentry->d_inode; in bfs_rename()
239 old_dentry->d_name.name, in bfs_rename()
240 old_dentry->d_name.len, &old_de); in bfs_rename()
/fs/nfs/
Ddir.c1531 nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in nfs_link() argument
1533 struct inode *inode = old_dentry->d_inode; in nfs_link()
1537 old_dentry->d_parent->d_name.name, old_dentry->d_name.name, in nfs_link()
1573 static int nfs_rename(struct inode *old_dir, struct dentry *old_dentry, in nfs_rename() argument
1576 struct inode *old_inode = old_dentry->d_inode; in nfs_rename()
1591 old_dentry->d_parent->d_name.name, old_dentry->d_name.name, in nfs_rename()
1634 if (atomic_read(&old_dentry->d_count) > 1) { in nfs_rename()
1637 shrink_dcache_parent(old_dentry); in nfs_rename()
1646 error = NFS_PROTO(old_dir)->rename(old_dir, &old_dentry->d_name, in nfs_rename()
1653 d_move(old_dentry, new_dentry); in nfs_rename()
[all …]
/fs/coda/
Ddir.c34 static int coda_link(struct dentry *old_dentry, struct inode *dir_inode,
41 static int coda_rename(struct inode *old_inode, struct dentry *old_dentry,
396 static int coda_rename(struct inode *old_dir, struct dentry *old_dentry, in coda_rename() argument
399 const char *old_name = old_dentry->d_name.name; in coda_rename()
401 int old_length = old_dentry->d_name.len; in coda_rename()
/fs/smbfs/
Ddir.c622 smb_rename(struct inode *old_dir, struct dentry *old_dentry, in smb_rename() argument
632 if (old_dentry->d_inode) in smb_rename()
633 smb_close(old_dentry->d_inode); in smb_rename()
648 error = smb_proc_mv(old_dentry, new_dentry); in smb_rename()
650 smb_renew_times(old_dentry); in smb_rename()
/fs/hfsplus/
Ddir.c462 static int hfsplus_rename(struct inode *old_dir, struct dentry *old_dentry, in hfsplus_rename() argument
474 res = hfsplus_rename_cat((u32)(unsigned long)old_dentry->d_fsdata, in hfsplus_rename()
475 old_dir, &old_dentry->d_name, in hfsplus_rename()
478 new_dentry->d_fsdata = old_dentry->d_fsdata; in hfsplus_rename()
/fs/reiserfs/
Dnamei.c1118 static int reiserfs_link(struct dentry *old_dentry, struct inode *dir, in reiserfs_link() argument
1122 struct inode *inode = old_dentry->d_inode; in reiserfs_link()
1226 static int reiserfs_rename(struct inode *old_dir, struct dentry *old_dentry, in reiserfs_rename() argument
1254 old_inode = old_dentry->d_inode; in reiserfs_rename()
1262 reiserfs_find_entry(old_dir, old_dentry->d_name.name, in reiserfs_rename()
1263 old_dentry->d_name.len, &old_entry_path, in reiserfs_rename()
1414 !entry_points_to_object(old_dentry->d_name.name, in reiserfs_rename()
1415 old_dentry->d_name.len, in reiserfs_rename()
/fs/jfs/
Dnamei.c788 static int jfs_link(struct dentry *old_dentry, in jfs_link() argument
793 struct inode *ip = old_dentry->d_inode; in jfs_link()
799 jfs_info("jfs_link: %s %s", old_dentry->d_name.name, in jfs_link()
1066 static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry, in jfs_rename() argument
1087 jfs_info("jfs_rename: %s %s", old_dentry->d_name.name, in jfs_rename()
1090 old_ip = old_dentry->d_inode; in jfs_rename()
1093 if ((rc = get_UCSname(&old_dname, old_dentry))) in jfs_rename()

12