Home
last modified time | relevance | path

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

123

/fs/nfs/
Dunlink.c263 struct dentry *old_dentry = data->old_dentry; in nfs_async_rename_done() local
265 trace_nfs_sillyrename_rename(old_dir, old_dentry, in nfs_async_rename_done()
285 if (d_really_is_positive(data->old_dentry)) in nfs_async_rename_release()
286 nfs_mark_for_revalidate(d_inode(data->old_dentry)); in nfs_async_rename_release()
301 dput(data->old_dentry); in nfs_async_rename_release()
334 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument
363 data->old_dentry = dget(old_dentry); in nfs_async_rename()
371 data->args.old_name = &old_dentry->d_name; in nfs_async_rename()
381 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); in nfs_async_rename()
393 struct dentry *dentry = data->old_dentry; in nfs_complete_sillyrename()
Dnfstrace.h685 const struct dentry *old_dentry,
690 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry),
696 __string(old_name, old_dentry->d_name.name)
704 __assign_str(old_name, old_dentry->d_name.name);
722 const struct dentry *old_dentry, \
726 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
731 const struct dentry *old_dentry,
737 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error),
743 __string(old_name, old_dentry->d_name.name)
753 __assign_str(old_name, old_dentry->d_name.name);
[all …]
/fs/affs/
Dnamei.c391 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in affs_link() argument
393 struct inode *inode = d_inode(old_dentry); in affs_link()
402 affs_rename(struct inode *old_dir, struct dentry *old_dentry, in affs_rename() argument
411 affs_nofilenametruncate(old_dentry)); in affs_rename()
423 bh = affs_bread(sb, d_inode(old_dentry)->i_ino); in affs_rename()
449 affs_xrename(struct inode *old_dir, struct dentry *old_dentry, in affs_xrename() argument
458 bh_old = affs_bread(sb, d_inode(old_dentry)->i_ino); in affs_xrename()
488 affs_copy_name(AFFS_TAIL(sb, bh_new)->name, old_dentry); in affs_xrename()
501 int affs_rename2(struct inode *old_dir, struct dentry *old_dentry, in affs_rename2() argument
510 old_dir->i_ino, old_dentry, new_dir->i_ino, new_dentry); in affs_rename2()
[all …]
/fs/jffs2/
Ddir.c243 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument
245 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb); in jffs2_link()
246 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); in jffs2_link()
256 if (d_is_dir(old_dentry)) in jffs2_link()
260 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link()
268 set_nlink(d_inode(old_dentry), ++f->inocache->pino_nlink); in jffs2_link()
270 d_instantiate(dentry, d_inode(old_dentry)); in jffs2_link()
272 ihold(d_inode(old_dentry)); in jffs2_link()
755 static int jffs2_rename (struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename() argument
797 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename()
[all …]
/fs/debugfs/
Dinode.c834 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, in debugfs_rename() argument
845 if (IS_ERR_OR_NULL(old_dentry)) in debugfs_rename()
846 return old_dentry; in debugfs_rename()
853 if (d_really_is_negative(old_dentry) || old_dentry == trap || in debugfs_rename()
854 d_mountpoint(old_dentry)) in debugfs_rename()
861 take_dentry_name_snapshot(&old_name, old_dentry); in debugfs_rename()
863 error = simple_rename(d_inode(old_dir), old_dentry, d_inode(new_dir), in debugfs_rename()
869 d_move(old_dentry, dentry); in debugfs_rename()
871 d_is_dir(old_dentry), in debugfs_rename()
872 NULL, old_dentry); in debugfs_rename()
[all …]
/fs/f2fs/
Dnamei.c314 static int f2fs_link(struct dentry *old_dentry, struct inode *dir, in f2fs_link() argument
317 struct inode *inode = d_inode(old_dentry); in f2fs_link()
326 err = fscrypt_prepare_link(old_dentry, dir, dentry); in f2fs_link()
332 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_link()
844 static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry, in f2fs_rename() argument
849 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename()
867 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_rename()
885 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_page); in f2fs_rename()
969 &old_dentry->d_name, &old_page); in f2fs_rename()
996 err = f2fs_add_link(old_dentry, whiteout); in f2fs_rename()
[all …]
/fs/minix/
Dnamei.c101 static int minix_link(struct dentry * old_dentry, struct inode * dir, in minix_link() argument
104 struct inode *inode = d_inode(old_dentry); in minix_link()
184 static int minix_rename(struct inode * old_dir, struct dentry *old_dentry, in minix_rename() argument
188 struct inode * old_inode = d_inode(old_dentry); in minix_rename()
199 old_de = minix_find_entry(old_dentry, &old_page); in minix_rename()
/fs/sysv/
Dnamei.c99 static int sysv_link(struct dentry * old_dentry, struct inode * dir, in sysv_link() argument
102 struct inode *inode = d_inode(old_dentry); in sysv_link()
189 static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry, in sysv_rename() argument
193 struct inode * old_inode = d_inode(old_dentry); in sysv_rename()
204 old_de = sysv_find_entry(old_dentry, &old_page); in sysv_rename()
/fs/ufs/
Dnamei.c148 static int ufs_link (struct dentry * old_dentry, struct inode * dir, in ufs_link() argument
151 struct inode *inode = d_inode(old_dentry); in ufs_link()
243 static int ufs_rename(struct inode *old_dir, struct dentry *old_dentry, in ufs_rename() argument
247 struct inode *old_inode = d_inode(old_dentry); in ufs_rename()
258 old_de = ufs_find_entry(old_dir, &old_dentry->d_name, &old_page); in ufs_rename()
/fs/ext2/
Dnamei.c198 static int ext2_link (struct dentry * old_dentry, struct inode * dir, in ext2_link() argument
201 struct inode *inode = d_inode(old_dentry); in ext2_link()
312 static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry, in ext2_rename() argument
316 struct inode * old_inode = d_inode(old_dentry); in ext2_rename()
335 old_de = ext2_find_entry (old_dir, &old_dentry->d_name, &old_page); in ext2_rename()
/fs/ubifs/
Ddir.c685 static int ubifs_link(struct dentry *old_dentry, struct inode *dir, in ubifs_link() argument
689 struct inode *inode = d_inode(old_dentry); in ubifs_link()
708 err = fscrypt_prepare_link(old_dentry, dir, dentry); in ubifs_link()
1245 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, in do_rename() argument
1250 struct inode *old_inode = d_inode(old_dentry); in do_rename()
1276 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename()
1293 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm); in do_rename()
1329 err = do_tmpfile(old_dir, old_dentry, S_IFCHR | WHITEOUT_MODE, &whiteout); in do_rename()
1486 static int ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry, in ubifs_xrename() argument
1493 struct inode *fst_inode = d_inode(old_dentry); in ubifs_xrename()
[all …]
/fs/ocfs2/
Dnamei.c673 static int ocfs2_link(struct dentry *old_dentry, in ocfs2_link() argument
678 struct inode *inode = d_inode(old_dentry); in ocfs2_link()
679 struct inode *old_dir = d_inode(old_dentry->d_parent); in ocfs2_link()
691 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_link()
729 err = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_link()
730 old_dentry->d_name.len, &old_de_ino); in ocfs2_link()
1193 struct dentry *old_dentry, in ocfs2_rename() argument
1200 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename()
1227 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1228 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_rename()
[all …]
/fs/sdcardfs/
Dinode.c398 static int sdcardfs_rename(struct inode *old_dir, struct dentry *old_dentry, in sdcardfs_rename() argument
415 if (!check_caller_access_to_name(old_dir, &old_dentry->d_name) || in sdcardfs_rename()
427 sdcardfs_get_real_lower(old_dentry, &lower_old_path); in sdcardfs_rename()
462 get_derived_permission_new(new_dentry->d_parent, old_dentry, &new_dentry->d_name); in sdcardfs_rename()
463 fixup_tmp_permissions(d_inode(old_dentry)); in sdcardfs_rename()
464 fixup_lower_ownership(old_dentry, new_dentry->d_name.name); in sdcardfs_rename()
465 d_invalidate(old_dentry); /* Can't fixup ownership recursively :( */ in sdcardfs_rename()
470 sdcardfs_put_real_lower(old_dentry, &lower_old_path); in sdcardfs_rename()
/fs/9p/
Dvfs_inode.c951 v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry, in v9fs_vfs_rename() argument
969 old_inode = d_inode(old_dentry); in v9fs_vfs_rename()
972 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_rename()
976 olddirfid = clone_fid(v9fs_parent_fid(old_dentry)); in v9fs_vfs_rename()
990 retval = p9_client_renameat(olddirfid, old_dentry->d_name.name, in v9fs_vfs_rename()
998 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename()
1030 d_move(old_dentry, new_dentry); in v9fs_vfs_rename()
1337 v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link() argument
1345 dir->i_ino, dentry, old_dentry); in v9fs_vfs_link()
1347 oldfid = v9fs_fid_clone(old_dentry); in v9fs_vfs_link()
[all …]
Dvfs_inode_dotl.c751 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link_dotl() argument
759 dir->i_ino, old_dentry, dentry); in v9fs_vfs_link_dotl()
766 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
781 fid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
785 v9fs_refresh_inode_dotl(fid, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
787 ihold(d_inode(old_dentry)); in v9fs_vfs_link_dotl()
788 d_instantiate(dentry, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
/fs/hfs/
Ddir.c282 static int hfs_rename(struct inode *old_dir, struct dentry *old_dentry, in hfs_rename() argument
298 res = hfs_cat_move(d_inode(old_dentry)->i_ino, in hfs_rename()
299 old_dir, &old_dentry->d_name, in hfs_rename()
303 (btree_key *)&HFS_I(d_inode(old_dentry))->cat_key, in hfs_rename()
/fs/crypto/
Dhooks.c72 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, in __fscrypt_prepare_rename() argument
87 if ((old_dentry->d_flags | new_dentry->d_flags) & in __fscrypt_prepare_rename()
94 d_inode(old_dentry))) in __fscrypt_prepare_rename()
/fs/nilfs2/
Dnamei.c176 static int nilfs_link(struct dentry *old_dentry, struct inode *dir, in nilfs_link() argument
179 struct inode *inode = d_inode(old_dentry); in nilfs_link()
341 static int nilfs_rename(struct inode *old_dir, struct dentry *old_dentry, in nilfs_rename() argument
345 struct inode *old_inode = d_inode(old_dentry); in nilfs_rename()
362 old_de = nilfs_find_entry(old_dir, &old_dentry->d_name, &old_page); in nilfs_rename()
/fs/fat/
Dnamei_msdos.c428 struct dentry *old_dentry, in do_msdos_rename() argument
441 old_inode = d_inode(old_dentry); in do_msdos_rename()
596 static int msdos_rename(struct inode *old_dir, struct dentry *old_dentry, in msdos_rename() argument
609 err = msdos_format_name(old_dentry->d_name.name, in msdos_rename()
610 old_dentry->d_name.len, old_msdos_name, in msdos_rename()
623 err = do_msdos_rename(old_dir, old_msdos_name, old_dentry, in msdos_rename()
/fs/orangefs/
Dnamei.c376 struct dentry *old_dentry, in orangefs_rename() argument
390 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename()
405 old_dentry->d_name.name, in orangefs_rename()
413 get_interruptible_flag(old_dentry->d_inode)); in orangefs_rename()
/fs/
Dnamei.c4338 int vfs_link2(struct vfsmount *mnt, struct dentry *old_dentry, struct inode *dir, struct dentry *ne… in vfs_link2() argument
4340 struct inode *inode = old_dentry->d_inode; in vfs_link2()
4371 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link2()
4384 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link2()
4399 int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode … in vfs_link() argument
4401 return vfs_link2(NULL, old_dentry, dir, new_dentry, delegated_inode); in vfs_link()
4541 struct inode *old_dir, struct dentry *old_dentry, in vfs_rename2() argument
4546 bool is_dir = d_is_dir(old_dentry); in vfs_rename2()
4547 struct inode *source = old_dentry->d_inode; in vfs_rename2()
4556 error = may_delete(mnt, old_dir, old_dentry, is_dir); in vfs_rename2()
[all …]
Dbad_inode.c41 static int bad_inode_link (struct dentry *old_dentry, struct inode *dir, in bad_inode_link() argument
75 static int bad_inode_rename2(struct inode *old_dir, struct dentry *old_dentry, in bad_inode_rename2() argument
/fs/ecryptfs/
Dinode.c424 static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir, in ecryptfs_link() argument
433 file_size_save = i_size_read(d_inode(old_dentry)); in ecryptfs_link()
434 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_link()
448 set_nlink(d_inode(old_dentry), in ecryptfs_link()
449 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink); in ecryptfs_link()
582 ecryptfs_rename(struct inode *old_dir, struct dentry *old_dentry, in ecryptfs_rename() argument
597 lower_old_dir_dentry = ecryptfs_dentry_to_lower(old_dentry->d_parent); in ecryptfs_rename()
600 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_rename()
/fs/reiserfs/
Dnamei.c1197 static int reiserfs_link(struct dentry *old_dentry, struct inode *dir, in reiserfs_link() argument
1201 struct inode *inode = d_inode(old_dentry); in reiserfs_link()
1307 static int reiserfs_rename(struct inode *old_dir, struct dentry *old_dentry, in reiserfs_rename() argument
1348 old_inode = d_inode(old_dentry); in reiserfs_rename()
1358 reiserfs_find_entry(old_dir, old_dentry->d_name.name, in reiserfs_rename()
1359 old_dentry->d_name.len, &old_entry_path, in reiserfs_rename()
1524 !entry_points_to_object(old_dentry->d_name.name, in reiserfs_rename()
1525 old_dentry->d_name.len, in reiserfs_rename()
/fs/bfs/
Ddir.c202 static int bfs_rename(struct inode *old_dir, struct dentry *old_dentry, in bfs_rename() argument
216 old_inode = d_inode(old_dentry); in bfs_rename()
223 old_bh = bfs_find_entry(old_dir, &old_dentry->d_name, &old_de); in bfs_rename()

123