Home
last modified time | relevance | path

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

1234

/linux/fs/nfs/
A 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()
A Dnfstrace.h681 const struct dentry *old_dentry,
686 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry),
692 __string(old_name, old_dentry->d_name.name)
700 __assign_str(old_name, old_dentry->d_name.name);
718 const struct dentry *old_dentry, \
722 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
727 const struct dentry *old_dentry,
739 __string(old_name, old_dentry->d_name.name)
749 __assign_str(old_name, old_dentry->d_name.name);
769 const struct dentry *old_dentry, \
[all …]
/linux/fs/jffs2/
A Ddir.c259 if (d_is_dir(old_dentry)) in jffs2_link()
263 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link()
273 d_instantiate(dentry, d_inode(old_dentry)); in jffs2_link()
275 ihold(d_inode(old_dentry)); in jffs2_link()
808 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename()
813 d_inode(old_dentry)->i_ino, type, in jffs2_rename()
839 if (d_is_dir(old_dentry) && !victim_f) in jffs2_rename()
844 old_dentry->d_name.name, old_dentry->d_name.len, NULL, now); in jffs2_rename()
852 inc_nlink(d_inode(old_dentry)); in jffs2_rename()
853 if (f->inocache && !d_is_dir(old_dentry)) in jffs2_rename()
[all …]
/linux/fs/debugfs/
A Dinode.c756 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, in debugfs_rename() argument
767 if (IS_ERR_OR_NULL(old_dentry)) in debugfs_rename()
768 return old_dentry; in debugfs_rename()
775 if (d_really_is_negative(old_dentry) || old_dentry == trap || in debugfs_rename()
776 d_mountpoint(old_dentry)) in debugfs_rename()
783 take_dentry_name_snapshot(&old_name, old_dentry); in debugfs_rename()
785 error = simple_rename(&init_user_ns, d_inode(old_dir), old_dentry, in debugfs_rename()
791 d_move(old_dentry, dentry); in debugfs_rename()
793 d_is_dir(old_dentry), in debugfs_rename()
794 NULL, old_dentry); in debugfs_rename()
[all …]
/linux/fs/affs/
A Dnamei.c396 struct inode *inode = d_inode(old_dentry); in affs_link()
405 affs_rename(struct inode *old_dir, struct dentry *old_dentry, in affs_rename() argument
414 affs_nofilenametruncate(old_dentry)); in affs_rename()
426 bh = affs_bread(sb, d_inode(old_dentry)->i_ino); in affs_rename()
452 affs_xrename(struct inode *old_dir, struct dentry *old_dentry, in affs_xrename() argument
461 bh_old = affs_bread(sb, d_inode(old_dentry)->i_ino); in affs_xrename()
493 affs_copy_name(AFFS_TAIL(sb, bh_new)->name, old_dentry); in affs_xrename()
507 struct dentry *old_dentry, struct inode *new_dir, in affs_rename2() argument
515 old_dir->i_ino, old_dentry, new_dir->i_ino, new_dentry); in affs_rename2()
518 return affs_xrename(old_dir, old_dentry, new_dir, new_dentry); in affs_rename2()
[all …]
/linux/security/landlock/
A Dfs.c547 static int hook_path_link(struct dentry *const old_dentry, in hook_path_link() argument
557 if (old_dentry->d_parent != new_dir->dentry) in hook_path_link()
560 if (unlikely(d_is_negative(old_dentry))) in hook_path_link()
563 get_mode_access(d_backing_inode(old_dentry)->i_mode)); in hook_path_link()
575 struct dentry *const old_dentry, in hook_path_rename() argument
588 if (unlikely(d_is_negative(old_dentry))) in hook_path_rename()
591 return check_access_path(dom, old_dir, maybe_remove(old_dentry) | in hook_path_rename()
593 get_mode_access(d_backing_inode(old_dentry)->i_mode)); in hook_path_rename()
/linux/fs/f2fs/
A Dnamei.c386 static int f2fs_link(struct dentry *old_dentry, struct inode *dir, in f2fs_link() argument
389 struct inode *inode = d_inode(old_dentry); in f2fs_link()
398 err = fscrypt_prepare_link(old_dentry, dir, dentry); in f2fs_link()
404 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_link()
928 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename()
945 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_rename()
1067 err = f2fs_add_link(old_dentry, whiteout); in f2fs_rename()
1119 struct inode *old_inode = d_inode(old_dentry); in f2fs_cross_rename()
1135 F2FS_I(old_dentry->d_inode)->i_projid)) || in f2fs_cross_rename()
1281 struct inode *old_dir, struct dentry *old_dentry, in f2fs_rename2() argument
[all …]
/linux/fs/sysv/
A Dnamei.c101 static int sysv_link(struct dentry * old_dentry, struct inode * dir, in sysv_link() argument
104 struct inode *inode = d_inode(old_dentry); in sysv_link()
193 struct dentry *old_dentry, struct inode *new_dir, in sysv_rename() argument
196 struct inode * old_inode = d_inode(old_dentry); in sysv_rename()
207 old_de = sysv_find_entry(old_dentry, &old_page); in sysv_rename()
/linux/fs/minix/
A Dnamei.c103 static int minix_link(struct dentry * old_dentry, struct inode * dir, in minix_link() argument
106 struct inode *inode = d_inode(old_dentry); in minix_link()
188 struct inode *old_dir, struct dentry *old_dentry, in minix_rename() argument
192 struct inode * old_inode = d_inode(old_dentry); in minix_rename()
203 old_de = minix_find_entry(old_dentry, &old_page); in minix_rename()
/linux/fs/ufs/
A Dnamei.c150 static int ufs_link (struct dentry * old_dentry, struct inode * dir, in ufs_link() argument
153 struct inode *inode = d_inode(old_dentry); in ufs_link()
247 struct dentry *old_dentry, struct inode *new_dir, in ufs_rename() argument
250 struct inode *old_inode = d_inode(old_dentry); in ufs_rename()
261 old_de = ufs_find_entry(old_dir, &old_dentry->d_name, &old_page); in ufs_rename()
/linux/tools/testing/selftests/bpf/progs/
A Dlocal_storage.c72 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, in BPF_PROG() argument
87 storage = bpf_inode_storage_get(&inode_storage_map, old_dentry->d_inode, in BPF_PROG()
97 err = bpf_inode_storage_delete(&inode_storage_map, old_dentry->d_inode); in BPF_PROG()
/linux/fs/ext2/
A Dnamei.c207 static int ext2_link (struct dentry * old_dentry, struct inode * dir, in ext2_link() argument
210 struct inode *inode = d_inode(old_dentry); in ext2_link()
325 struct inode * old_dir, struct dentry * old_dentry, in ext2_rename() argument
329 struct inode * old_inode = d_inode(old_dentry); in ext2_rename()
350 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_page, in ext2_rename()
/linux/fs/ubifs/
A Ddir.c689 static int ubifs_link(struct dentry *old_dentry, struct inode *dir, in ubifs_link() argument
693 struct inode *inode = d_inode(old_dentry); in ubifs_link()
712 err = fscrypt_prepare_link(old_dentry, dir, dentry); in ubifs_link()
1250 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, in do_rename() argument
1255 struct inode *old_inode = d_inode(old_dentry); in do_rename()
1281 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename()
1505 struct inode *fst_inode = d_inode(old_dentry); in ubifs_xrename()
1554 struct inode *old_dir, struct dentry *old_dentry, in ubifs_rename() argument
1567 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ubifs_rename()
1573 return ubifs_xrename(old_dir, old_dentry, new_dir, new_dentry); in ubifs_rename()
[all …]
/linux/fs/hfs/
A Ddir.c284 struct dentry *old_dentry, struct inode *new_dir, in hfs_rename() argument
299 res = hfs_cat_move(d_inode(old_dentry)->i_ino, in hfs_rename()
300 old_dir, &old_dentry->d_name, in hfs_rename()
304 (btree_key *)&HFS_I(d_inode(old_dentry))->cat_key, in hfs_rename()
/linux/fs/ocfs2/
A Dnamei.c681 static int ocfs2_link(struct dentry *old_dentry, in ocfs2_link() argument
686 struct inode *inode = d_inode(old_dentry); in ocfs2_link()
699 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_link()
738 old_dentry->d_name.len, &old_de_ino); in ocfs2_link()
1202 struct dentry *old_dentry, in ocfs2_rename() argument
1209 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename()
1237 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_rename()
1366 old_dentry->d_name.len, in ocfs2_rename()
1565 old_dentry->d_name.len, old_dir, in ocfs2_rename()
1572 old_dentry->d_name.len, old_dentry->d_name.name); in ocfs2_rename()
[all …]
/linux/include/linux/
A Dfscrypt.h337 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry,
621 struct dentry *old_dentry, in __fscrypt_prepare_rename() argument
809 static inline int fscrypt_prepare_link(struct dentry *old_dentry, in fscrypt_prepare_link() argument
814 return __fscrypt_prepare_link(d_inode(old_dentry), dir, dentry); in fscrypt_prepare_link()
841 struct dentry *old_dentry, in fscrypt_prepare_rename() argument
847 return __fscrypt_prepare_rename(old_dir, old_dentry, in fscrypt_prepare_rename()
/linux/fs/9p/
A Dvfs_inode.c923 struct dentry *old_dentry, struct inode *new_dir, in v9fs_vfs_rename() argument
940 old_inode = d_inode(old_dentry); in v9fs_vfs_rename()
943 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_rename()
947 dfid = v9fs_parent_fid(old_dentry); in v9fs_vfs_rename()
968 retval = p9_client_renameat(olddirfid, old_dentry->d_name.name, in v9fs_vfs_rename()
976 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename()
1008 d_move(old_dentry, new_dentry); in v9fs_vfs_rename()
1331 v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link() argument
1339 dir->i_ino, dentry, old_dentry); in v9fs_vfs_link()
1341 oldfid = v9fs_fid_clone(old_dentry); in v9fs_vfs_link()
[all …]
A Dvfs_inode_dotl.c774 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link_dotl() argument
782 dir->i_ino, old_dentry, dentry); in v9fs_vfs_link_dotl()
789 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
809 fid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
813 v9fs_refresh_inode_dotl(fid, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
816 ihold(d_inode(old_dentry)); in v9fs_vfs_link_dotl()
817 d_instantiate(dentry, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
/linux/security/tomoyo/
A Dtomoyo.c251 static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir, in tomoyo_path_link() argument
254 struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry }; in tomoyo_path_link()
271 struct dentry *old_dentry, in tomoyo_path_rename() argument
275 struct path path1 = { .mnt = old_parent->mnt, .dentry = old_dentry }; in tomoyo_path_rename()
/linux/fs/ecryptfs/
A Dinode.c422 static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir, in ecryptfs_link() argument
431 file_size_save = i_size_read(d_inode(old_dentry)); in ecryptfs_link()
432 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_link()
444 set_nlink(d_inode(old_dentry), in ecryptfs_link()
445 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink); in ecryptfs_link()
576 struct dentry *old_dentry, struct inode *new_dir, in ecryptfs_rename() argument
591 lower_old_dir_dentry = ecryptfs_dentry_to_lower(old_dentry->d_parent); in ecryptfs_rename()
594 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_rename()
619 rd.old_dentry = lower_old_dentry; in ecryptfs_rename()
/linux/fs/nilfs2/
A Dnamei.c177 static int nilfs_link(struct dentry *old_dentry, struct inode *dir, in nilfs_link() argument
180 struct inode *inode = d_inode(old_dentry); in nilfs_link()
344 struct inode *old_dir, struct dentry *old_dentry, in nilfs_rename() argument
348 struct inode *old_inode = d_inode(old_dentry); in nilfs_rename()
365 old_de = nilfs_find_entry(old_dir, &old_dentry->d_name, &old_page); in nilfs_rename()
/linux/fs/crypto/
A Dhooks.c71 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, in __fscrypt_prepare_rename() argument
75 if (fscrypt_is_nokey_name(old_dentry) || in __fscrypt_prepare_rename()
86 d_inode(old_dentry))) in __fscrypt_prepare_rename()
/linux/fs/fat/
A Dnamei_msdos.c429 struct dentry *old_dentry, in do_msdos_rename() argument
442 old_inode = d_inode(old_dentry); in do_msdos_rename()
598 struct inode *old_dir, struct dentry *old_dentry, in msdos_rename() argument
611 err = msdos_format_name(old_dentry->d_name.name, in msdos_rename()
612 old_dentry->d_name.len, old_msdos_name, in msdos_rename()
625 err = do_msdos_rename(old_dir, old_msdos_name, old_dentry, in msdos_rename()
/linux/fs/orangefs/
A Dnamei.c380 struct dentry *old_dentry, in orangefs_rename() argument
394 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename()
409 old_dentry->d_name.name, in orangefs_rename()
417 get_interruptible_flag(old_dentry->d_inode)); in orangefs_rename()
/linux/fs/
A Dlibfs.c394 int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in simple_link() argument
396 struct inode *inode = d_inode(old_dentry); in simple_link()
451 int simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, in simple_rename_exchange() argument
454 bool old_is_dir = d_is_dir(old_dentry); in simple_rename_exchange()
468 d_inode(old_dentry)->i_ctime = in simple_rename_exchange()
476 struct dentry *old_dentry, struct inode *new_dir, in simple_rename() argument
479 struct inode *inode = d_inode(old_dentry); in simple_rename()
480 int they_are_dirs = d_is_dir(old_dentry); in simple_rename()
486 return simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry); in simple_rename()

Completed in 80 milliseconds

1234