Home
last modified time | relevance | path

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

123

/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 Ddir.c2689 nfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in nfs_link() argument
2691 struct inode *inode = d_inode(old_dentry); in nfs_link()
2695 old_dentry, dentry); in nfs_link()
2720 static bool nfs_rename_is_unsafe_cross_dir(struct dentry *old_dentry, in nfs_rename_is_unsafe_cross_dir() argument
2723 struct nfs_server *server = NFS_SB(old_dentry->d_sb); in nfs_rename_is_unsafe_cross_dir()
2725 if (old_dentry->d_parent != new_dentry->d_parent) in nfs_rename_is_unsafe_cross_dir()
2757 struct dentry *old_dentry, struct inode *new_dir, in nfs_rename() argument
2760 struct inode *old_inode = d_inode(old_dentry); in nfs_rename()
2772 old_dentry, new_dentry, in nfs_rename()
2775 trace_nfs_rename_enter(old_dir, old_dentry, new_dir, new_dentry); in nfs_rename()
[all …]
/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.c1128 static int current_check_refer_path(struct dentry *const old_dentry, in current_check_refer_path() argument
1146 if (unlikely(d_is_negative(old_dentry))) in current_check_refer_path()
1157 get_mode_access(d_backing_inode(old_dentry)->i_mode); in current_check_refer_path()
1159 access_request_parent1 |= maybe_remove(old_dentry); in current_check_refer_path()
1164 if (old_dentry->d_parent == new_dir->dentry) { in current_check_refer_path()
1196 old_parent = (old_dentry == mnt_dir.dentry) ? old_dentry : in current_check_refer_path()
1197 old_dentry->d_parent; in current_check_refer_path()
1218 &layer_masks_parent1, &request1, old_dentry, in current_check_refer_path()
1508 static int hook_path_link(struct dentry *const old_dentry, in hook_path_link() argument
1512 return current_check_refer_path(old_dentry, new_dir, new_dentry, false, in hook_path_link()
[all …]
/linux/fs/ubifs/
H A Ddir.c750 static int ubifs_link(struct dentry *old_dentry, struct inode *dir, in ubifs_link() argument
754 struct inode *inode = d_inode(old_dentry); in ubifs_link()
773 err = fscrypt_prepare_link(old_dentry, dir, dentry); in ubifs_link()
1321 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, in do_rename() argument
1326 struct inode *old_inode = d_inode(old_dentry); in do_rename()
1353 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename()
1372 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm); in do_rename()
1413 whiteout = create_whiteout(old_dir, old_dentry); in do_rename()
1450 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in do_rename()
1581 static int ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry, in ubifs_xrename() argument
[all …]
/linux/fs/
H A Dlibfs.c353 void simple_offset_rename(struct inode *old_dir, struct dentry *old_dentry, in simple_offset_rename() argument
363 simple_offset_remove(old_ctx, old_dentry); in simple_offset_rename()
365 WARN_ON(simple_offset_replace(new_ctx, old_dentry, new_offset)); in simple_offset_rename()
382 struct dentry *old_dentry, in simple_offset_rename_exchange() argument
388 long old_index = dentry2offset(old_dentry); in simple_offset_rename_exchange()
395 ret = mtree_store(&new_ctx->mt, new_index, old_dentry, GFP_KERNEL); in simple_offset_rename_exchange()
405 offset_set(old_dentry, new_index); in simple_offset_rename_exchange()
407 simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry); in simple_offset_rename_exchange()
754 int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in simple_link() argument
756 struct inode *inode = d_inode(old_dentry); in simple_link()
[all …]
H A Dnamei.c3883 rd->old_dentry = d1; in __start_renaming()
3935 struct dentry *old_dentry, struct qstr *new_last) in __start_renaming_dentry() argument
3948 trap = lock_rename_child(old_dentry, rd->new_parent); in __start_renaming_dentry()
3951 if (d_unhashed(old_dentry) || in __start_renaming_dentry()
3952 (rd->old_parent && rd->old_parent != old_dentry->d_parent)) { in __start_renaming_dentry()
3964 if (old_dentry == trap) { in __start_renaming_dentry()
3979 rd->old_dentry = dget(old_dentry); in __start_renaming_dentry()
3981 rd->old_parent = dget(old_dentry->d_parent); in __start_renaming_dentry()
3987 unlock_rename(old_dentry->d_parent, rd->new_parent); in __start_renaming_dentry()
4016 struct dentry *old_dentry, struct qstr *new_last) in start_renaming_dentry() 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
/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/ocfs2/
H A Dnamei.c684 static int ocfs2_link(struct dentry *old_dentry, in ocfs2_link() argument
689 struct inode *inode = d_inode(old_dentry); in ocfs2_link()
690 struct inode *old_dir = d_inode(old_dentry->d_parent); in ocfs2_link()
702 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_link()
740 err = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_link()
741 old_dentry->d_name.len, &old_de_ino); in ocfs2_link()
1207 struct dentry *old_dentry, in ocfs2_rename() argument
1214 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename()
1241 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1242 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_rename()
[all …]
/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()
1265 v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link() argument
1273 dir->i_ino, dentry, old_dentry); in v9fs_vfs_link()
1275 oldfid = v9fs_fid_clone(old_dentry); in v9fs_vfs_link()
[all …]
H A Dvfs_inode_dotl.c730 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link_dotl() argument
738 dir->i_ino, old_dentry, dentry); in v9fs_vfs_link_dotl()
745 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
765 fid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
769 v9fs_refresh_inode_dotl(fid, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
772 ihold(d_inode(old_dentry)); in v9fs_vfs_link_dotl()
773 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/include/linux/
H A Dfscrypt.h460 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry,
780 struct dentry *old_dentry, in __fscrypt_prepare_rename() argument
989 static inline int fscrypt_prepare_link(struct dentry *old_dentry, in fscrypt_prepare_link() argument
994 return __fscrypt_prepare_link(d_inode(old_dentry), dir, dentry); in fscrypt_prepare_link()
1021 struct dentry *old_dentry, in fscrypt_prepare_rename() argument
1027 return __fscrypt_prepare_rename(old_dir, old_dentry, in fscrypt_prepare_rename()
/linux/fs/crypto/
H A Dhooks.c91 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, in __fscrypt_prepare_rename() argument
95 if (fscrypt_is_nokey_name(old_dentry) || in __fscrypt_prepare_rename()
106 d_inode(old_dentry))) in __fscrypt_prepare_rename()
/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/fat/
H A Dnamei_vfat.c934 static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry, in vfat_rename() argument
947 old_inode = d_inode(old_dentry); in vfat_rename()
950 err = vfat_find(old_dir, &old_dentry->d_name, &old_sinfo); in vfat_rename()
1062 static int vfat_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, in vfat_rename_exchange() argument
1073 old_inode = d_inode(old_dentry); in vfat_rename_exchange()
1164 struct dentry *old_dentry, struct inode *new_dir, in vfat_rename2() argument
1171 return vfat_rename_exchange(old_dir, old_dentry, in vfat_rename2()
1176 return vfat_rename(old_dir, old_dentry, new_dir, new_dentry); in vfat_rename2()
/linux/fs/afs/
H A Ddir.c45 struct dentry *old_dentry, struct inode *new_dir,
1882 struct dentry *old_dentry = op->dentry; in afs_rename_edit_dir() local
1900 afs_edit_dir_remove(orig_dvnode, &old_dentry->d_name, in afs_rename_edit_dir()
1940 d_move(old_dentry, new_dentry); in afs_rename_edit_dir()
1956 struct dentry *old_dentry = op->dentry; in afs_rename_exchange_edit_dir() local
1965 afs_edit_dir_update(orig_dvnode, &old_dentry->d_name, in afs_rename_exchange_edit_dir()
1971 d_exchange(old_dentry, new_dentry); in afs_rename_exchange_edit_dir()
1977 afs_edit_dir_update(orig_dvnode, &old_dentry->d_name, in afs_rename_exchange_edit_dir()
2001 afs_update_dentry_version(op, new_dvp, old_dentry); in afs_rename_exchange_edit_dir()
2004 d_exchange(old_dentry, new_dentry); in afs_rename_exchange_edit_dir()
[all …]
/linux/fs/ecryptfs/
H A Dinode.c430 static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir, in ecryptfs_link() argument
439 file_size_save = i_size_read(d_inode(old_dentry)); in ecryptfs_link()
440 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_link()
454 set_nlink(d_inode(old_dentry), in ecryptfs_link()
455 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink); in ecryptfs_link()
596 struct dentry *old_dentry, struct inode *new_dir, in ecryptfs_rename() argument
610 lower_old_dir_dentry = ecryptfs_dentry_to_lower(old_dentry->d_parent); in ecryptfs_rename()
613 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_rename()
/linux/fs/bfs/
H A Ddir.c203 struct dentry *old_dentry, struct inode *new_dir, 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()
/linux/security/
H A Dsecurity.c1481 * @old_dentry: existing file
1489 int security_path_link(struct dentry *old_dentry, const struct path *new_dir, in security_path_link() argument
1492 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)))) in security_path_link()
1494 return call_int_hook(path_link, old_dentry, new_dir, new_dentry); in security_path_link()
1500 * @old_dentry: the old file
1509 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, in security_path_rename() argument
1513 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)) || in security_path_rename()
1518 return call_int_hook(path_rename, old_dir, old_dentry, new_dir, in security_path_rename()
1625 * @old_dentry: existing file
1633 int security_inode_link(struct dentry *old_dentry, struc argument
1744 security_inode_rename(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) security_inode_rename() argument
[all...]
/linux/fs/ceph/
H A Ddir.c1188 static int ceph_link(struct dentry *old_dentry, struct inode *dir, in ceph_link() argument
1206 err = fscrypt_prepare_link(old_dentry, dir, dentry); in ceph_link()
1211 old_dentry, dentry); in ceph_link()
1219 req->r_old_dentry = dget(old_dentry); in ceph_link()
1224 if (old_dentry->d_flags & DCACHE_DISCONNECTED) in ceph_link()
1225 req->r_ino2 = ceph_vino(d_inode(old_dentry)); in ceph_link()
1237 ihold(d_inode(old_dentry)); in ceph_link()
1238 d_instantiate(dentry, d_inode(old_dentry)); in ceph_link()
1457 struct dentry *old_dentry, struct inode *new_dir, in ceph_rename() argument
1486 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ceph_rename()
[all …]
/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/fs/hfsplus/
H A Ddir.c577 struct inode *old_dir, struct dentry *old_dentry, in hfsplus_rename() argument
596 res = hfsplus_rename_cat((u32)(unsigned long)old_dentry->d_fsdata, in hfsplus_rename()
597 old_dir, &old_dentry->d_name, in hfsplus_rename()
600 new_dentry->d_fsdata = old_dentry->d_fsdata; in hfsplus_rename()

123