Home
last modified time | relevance | path

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

12

/linux/fs/nfs/
H A Dunlink.c270 struct dentry *old_dentry = data->old_dentry; in nfs_async_rename_done() local
272 trace_nfs_async_rename_done(old_dir, old_dentry, in nfs_async_rename_done()
292 if (d_really_is_positive(data->old_dentry)) in nfs_async_rename_release()
293 nfs_mark_for_revalidate(d_inode(data->old_dentry)); in nfs_async_rename_release()
308 dput(data->old_dentry); in nfs_async_rename_release()
341 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument
375 data->old_dentry = dget(old_dentry); in nfs_async_rename()
383 data->args.old_name = &old_dentry->d_name; in nfs_async_rename()
393 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry, in nfs_async_rename()
406 struct dentry *dentry = data->old_dentry; in nfs_complete_sillyrename()
H A Dnfstrace.h826 const struct dentry *old_dentry,
831 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry),
837 __string(old_name, old_dentry->d_name.name)
863 const struct dentry *old_dentry, \
867 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
872 const struct dentry *old_dentry,
878 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error),
884 __string(old_name, old_dentry->d_name.name)
914 const struct dentry *old_dentry, \
919 TP_ARGS(old_dir, old_dentry, new_dir, \
/linux/fs/minix/
H A Dnamei.c96 static int minix_link(struct dentry * old_dentry, struct inode * dir, in minix_link() argument
99 struct inode *inode = d_inode(old_dentry); in minix_link()
191 struct inode *old_dir, struct dentry *old_dentry, in minix_rename() argument
195 struct inode * old_inode = d_inode(old_dentry); in minix_rename()
206 old_de = minix_find_entry(old_dentry, &old_folio); in minix_rename()
/linux/security/landlock/
H A Dfs.c1078 * @old_dentry: File or directory requested to be moved or linked.
1123 * Return: 0 if access is allowed, -EXDEV if @old_dentry would inherit new
1127 static int current_check_refer_path(struct dentry *const old_dentry,
1145 if (unlikely(d_is_negative(old_dentry))) in current_check_refer_path()
1156 get_mode_access(d_backing_inode(old_dentry)->i_mode); in current_check_refer_path()
1158 access_request_parent1 |= maybe_remove(old_dentry); in current_check_refer_path()
1163 if (old_dentry->d_parent == new_dir->dentry) { in current_check_refer_path()
1190 * old_dentry may be the root of the common mount point and in current_check_refer_path()
1191 * !IS_ROOT(old_dentry) at the same time (e.g. with open_tree() and in current_check_refer_path()
1193 * we keep a reference to old_dentry in current_check_refer_path()
1128 current_check_refer_path(struct dentry * const old_dentry,const struct path * const new_dir,struct dentry * const new_dentry,const bool removable,const bool exchange) current_check_refer_path() argument
1508 hook_path_link(struct dentry * const old_dentry,const struct path * const new_dir,struct dentry * const new_dentry) hook_path_link() argument
1517 hook_path_rename(const struct path * const old_dir,struct dentry * const old_dentry,const struct path * const new_dir,struct dentry * const new_dentry,const unsigned int flags) hook_path_rename() argument
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dlocal_storage.c102 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, in BPF_PROG()
116 storage = bpf_inode_storage_get(&inode_storage_map, old_dentry->d_inode, in BPF_PROG()
124 err = bpf_inode_storage_delete(&inode_storage_map, old_dentry->d_inode); in BPF_PROG()
108 BPF_PROG(inode_rename,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) BPF_PROG() argument
H A Dverifier_vfs_accept.c88 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, in BPF_PROG() argument
H A Dverifier_vfs_reject.c164 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, in BPF_PROG() argument
/linux/fs/hfs/
H A Ddir.c291 struct dentry *old_dentry, struct inode *new_dir, in hfs_rename() argument
306 res = hfs_cat_move(d_inode(old_dentry)->i_ino, in hfs_rename()
307 old_dir, &old_dentry->d_name, in hfs_rename()
311 (btree_key *)&HFS_I(d_inode(old_dentry))->cat_key, in hfs_rename()
/linux/fs/9p/
H A Dvfs_inode.c857 struct dentry *old_dentry, struct inode *new_dir, in v9fs_vfs_rename() argument
873 old_inode = d_inode(old_dentry); in v9fs_vfs_rename()
876 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_rename()
880 dfid = v9fs_parent_fid(old_dentry); in v9fs_vfs_rename()
902 retval = p9_client_renameat(olddirfid, old_dentry->d_name.name, in v9fs_vfs_rename()
910 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename()
942 d_move(old_dentry, new_dentry); in v9fs_vfs_rename()
1267 v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link() argument
1275 dir->i_ino, dentry, old_dentry); in v9fs_vfs_link()
1277 oldfid = v9fs_fid_clone(old_dentry); in v9fs_vfs_link()
[all …]
H A Dvfs_inode_dotl.c734 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link_dotl() argument
742 dir->i_ino, old_dentry, dentry); in v9fs_vfs_link_dotl()
749 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
769 fid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
773 v9fs_refresh_inode_dotl(fid, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
776 ihold(d_inode(old_dentry)); in v9fs_vfs_link_dotl()
777 d_instantiate(dentry, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
/linux/security/tomoyo/
H A Dtomoyo.c264 static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir, in tomoyo_path_link() argument
267 struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry }; in tomoyo_path_link()
285 struct dentry *old_dentry, in tomoyo_path_rename() argument
290 struct path path1 = { .mnt = old_parent->mnt, .dentry = old_dentry }; in tomoyo_path_rename()
/linux/fs/
H A Dnamei.c3911 rd->old_dentry = d1; in __start_renaming()
3963 struct dentry *old_dentry, struct qstr *new_last) in __start_renaming_dentry() argument
3976 trap = lock_rename_child(old_dentry, rd->new_parent); in __start_renaming_dentry()
3979 if (d_unhashed(old_dentry) || in __start_renaming_dentry()
3980 (rd->old_parent && rd->old_parent != old_dentry->d_parent)) { in __start_renaming_dentry()
3992 if (old_dentry == trap) { in __start_renaming_dentry()
4007 rd->old_dentry = dget(old_dentry); in __start_renaming_dentry()
4009 rd->old_parent = dget(old_dentry->d_parent); in __start_renaming_dentry()
4015 unlock_rename(old_dentry->d_parent, rd->new_parent); in __start_renaming_dentry()
4044 struct dentry *old_dentry, struct qstr *new_last) in start_renaming_dentry() argument
[all …]
/linux/fs/orangefs/
H A Dnamei.c370 struct dentry *old_dentry, in orangefs_rename() argument
384 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename()
398 strscpy(new_op->upcall.req.rename.d_old_name, old_dentry->d_name.name); in orangefs_rename()
403 get_interruptible_flag(old_dentry->d_inode)); in orangefs_rename()
/linux/fs/afs/
H A Ddir.c45 struct dentry *old_dentry, struct inode *new_dir,
1886 struct dentry *old_dentry = op->dentry; in afs_rename_edit_dir() local
1904 afs_edit_dir_remove(orig_dvnode, &old_dentry->d_name, in afs_rename_edit_dir()
1944 d_move(old_dentry, new_dentry); in afs_rename_edit_dir()
1960 struct dentry *old_dentry = op->dentry; in afs_rename_exchange_edit_dir() local
1969 afs_edit_dir_update(orig_dvnode, &old_dentry->d_name, in afs_rename_exchange_edit_dir()
1975 d_exchange(old_dentry, new_dentry); in afs_rename_exchange_edit_dir()
1981 afs_edit_dir_update(orig_dvnode, &old_dentry->d_name, in afs_rename_exchange_edit_dir()
2005 afs_update_dentry_version(op, new_dvp, old_dentry); in afs_rename_exchange_edit_dir()
2008 d_exchange(old_dentry, new_dentry); in afs_rename_exchange_edit_dir()
[all …]
/linux/fs/ceph/
H A Ddir.c1190 static int ceph_link(struct dentry *old_dentry, struct inode *dir, in ceph_link() argument
1208 err = fscrypt_prepare_link(old_dentry, dir, dentry); in ceph_link()
1213 old_dentry, dentry); in ceph_link()
1221 req->r_old_dentry = dget(old_dentry); in ceph_link()
1226 if (old_dentry->d_flags & DCACHE_DISCONNECTED) in ceph_link()
1227 req->r_ino2 = ceph_vino(d_inode(old_dentry)); in ceph_link()
1239 ihold(d_inode(old_dentry)); in ceph_link()
1240 d_instantiate(dentry, d_inode(old_dentry)); in ceph_link()
1472 struct dentry *old_dentry, struct inode *new_dir, in ceph_rename() argument
1501 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ceph_rename()
[all …]
/linux/fs/jfs/
H A Dnamei.c787 static int jfs_link(struct dentry *old_dentry, in jfs_link() argument
792 struct inode *ip = d_inode(old_dentry); in jfs_link()
798 jfs_info("jfs_link: %pd %pd", old_dentry, dentry); in jfs_link()
1070 struct dentry *old_dentry, struct inode *new_dir, in jfs_rename() argument
1093 jfs_info("jfs_rename: %pd %pd", old_dentry, new_dentry); in jfs_rename()
1102 old_ip = d_inode(old_dentry); in jfs_rename()
1105 if ((rc = get_UCSname(&old_dname, old_dentry))) in jfs_rename()
/linux/security/
H A Dsecurity.c1515 int security_path_link(struct dentry *old_dentry, const struct path *new_dir, in security_path_link() argument
1518 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)))) in security_path_link()
1520 return call_int_hook(path_link, old_dentry, new_dir, new_dentry); in security_path_link()
1535 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, in security_path_rename() argument
1539 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)) || in security_path_rename()
1544 return call_int_hook(path_rename, old_dir, old_dentry, new_dir, in security_path_rename()
1659 int security_inode_link(struct dentry *old_dentry, struct inode *dir, in security_inode_link() argument
1662 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)))) in security_inode_link()
1664 return call_int_hook(inode_link, old_dentry, dir, new_dentry); in security_inode_link()
1770 int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, in security_inode_rename() argument
[all …]
/linux/fs/overlayfs/
H A Doverlayfs.h230 static inline int ovl_do_link(struct ovl_fs *ofs, struct dentry *old_dentry, in ovl_do_link() argument
233 int err = vfs_link(old_dentry, ovl_upper_mnt_idmap(ofs), dir, in ovl_do_link()
236 pr_debug("link(%pd2, %pd2) = %i\n", old_dentry, new_dentry, err); in ovl_do_link()
368 pr_debug("rename(%pd2, %pd2, 0x%x)\n", rd->old_dentry, rd->new_dentry, in ovl_do_rename_rd()
373 rd->old_dentry, rd->new_dentry, err); in ovl_do_rename_rd()
385 .old_dentry = olddentry, in ovl_do_rename()
/linux/fs/vboxsf/
H A Ddir.c387 struct dentry *old_dentry, in vboxsf_dir_rename() argument
402 old_path = vboxsf_path_from_dentry(sbi, old_dentry); in vboxsf_dir_rename()
412 if (d_inode(old_dentry)->i_mode & S_IFDIR) in vboxsf_dir_rename()
/linux/Documentation/translations/zh_CN/filesystems/
H A Ddebugfs.rst190 struct dentry *old_dentry,
199 函数调用之前不能存在;返回值为old_dentry,其中包含更新的信息。可以使用
/linux/Documentation/translations/zh_TW/filesystems/
H A Ddebugfs.rst191 struct dentry *old_dentry,
200 函數調用之前不能存在;返回值爲old_dentry,其中包含更新的信息。可以使用
/linux/fs/hpfs/
H A Dnamei.c504 struct dentry *old_dentry, struct inode *new_dir, in hpfs_rename() argument
507 const unsigned char *old_name = old_dentry->d_name.name; in hpfs_rename()
508 unsigned old_len = old_dentry->d_name.len; in hpfs_rename()
511 struct inode *i = d_inode(old_dentry); in hpfs_rename()
/linux/drivers/android/
H A Dbinderfs.c348 struct inode *old_dir, struct dentry *old_dentry, in binderfs_rename() argument
352 if (is_binderfs_control_device(old_dentry) || in binderfs_rename()
356 return simple_rename(idmap, old_dir, old_dentry, new_dir, in binderfs_rename()
/linux/drivers/android/binder/
H A Drust_binderfs.c339 struct inode *old_dir, struct dentry *old_dentry, in binderfs_rename() argument
343 if (is_binderfs_control_device(old_dentry) || in binderfs_rename()
347 return simple_rename(idmap, old_dir, old_dentry, new_dir, in binderfs_rename()
/linux/security/apparmor/include/
H A Dfile.h96 struct dentry *old_dentry, const struct path *new_dir,

12