Home
last modified time | relevance | path

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

123

/linux/fs/nfs/
H A Dunlink.c272 struct dentry *old_dentry = data->old_dentry; in nfs_async_rename_done() local
274 trace_nfs_async_rename_done(old_dir, old_dentry, in nfs_async_rename_done()
294 if (d_really_is_positive(data->old_dentry)) in nfs_async_rename_release()
295 nfs_mark_for_revalidate(d_inode(data->old_dentry)); in nfs_async_rename_release()
310 dput(data->old_dentry); in nfs_async_rename_release()
343 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument
377 data->old_dentry = dget(old_dentry); in nfs_async_rename()
385 data->args.old_name = &old_dentry->d_name; in nfs_async_rename()
395 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry, in nfs_async_rename()
408 struct dentry *dentry = data->old_dentry; in nfs_complete_sillyrename()
/linux/fs/affs/
H A Dnamei.c394 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in affs_link() argument
396 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()
[all …]
/linux/fs/jffs2/
H A Ddir.c250 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument
252 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb); in jffs2_link()
253 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); in jffs2_link()
263 if (d_is_dir(old_dentry)) in jffs2_link()
267 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link()
275 set_nlink(d_inode(old_dentry), ++f->inocache->pino_nlink); in jffs2_link()
277 d_instantiate(dentry, d_inode(old_dentry)); in jffs2_link()
280 ihold(d_inode(old_dentry)); in jffs2_link()
773 struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename() argument
815 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename()
[all …]
/linux/fs/f2fs/
H A Dnamei.c418 static int f2fs_link(struct dentry *old_dentry, struct inode *dir, in f2fs_link() argument
421 struct inode *inode = d_inode(old_dentry); in f2fs_link()
434 err = fscrypt_prepare_link(old_dentry, dir, dentry); in f2fs_link()
964 struct dentry *old_dentry, struct inode *new_dir, in f2fs_rename()
968 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename()
1011 err = f2fs_setup_filename(old_dir, &old_dentry->d_name, in f2fs_rename()
1037 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_block); in f2fs_rename()
1125 err = f2fs_add_link(old_dentry, whiteout); in f2fs_rename()
1127 d_invalidate(old_dentry); in f2fs_rename()
1174 static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry, in f2fs_cross_rename()
963 f2fs_rename(const struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) f2fs_rename() argument
1172 f2fs_cross_rename(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry) f2fs_cross_rename() argument
1345 f2fs_rename2(const struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) f2fs_rename2() argument
[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()
195 struct inode *old_dir, struct dentry *old_dentry, in minix_rename()
199 struct inode * old_inode = d_inode(old_dentry); in minix_rename()
210 old_de = minix_find_entry(old_dentry, &old_folio); in minix_rename()
191 minix_rename(const struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) minix_rename() argument
/linux/fs/ufs/
H A Dnamei.c149 static int ufs_link (struct dentry * old_dentry, struct inode * dir, in ufs_link() argument
152 struct inode *inode = d_inode(old_dentry); in ufs_link()
244 struct dentry *old_dentry, struct inode *new_dir, 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_folio); in ufs_rename()
/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.c350 * @old_dentry: dentry of source entry
362 void simple_offset_rename(struct inode *old_dir, struct dentry *old_dentry, in simple_offset_rename()
372 simple_offset_remove(old_ctx, old_dentry);
374 WARN_ON(simple_offset_replace(new_ctx, old_dentry, new_offset));
380 * @old_dentry: dentry being moved in simple_offset_rename_exchange() argument
391 struct dentry *old_dentry, in simple_offset_rename_exchange()
397 long old_index = dentry2offset(old_dentry); in simple_offset_rename_exchange()
407 ret = mas_store_gfp(&new_mas, old_dentry, GFP_KERNEL); in simple_offset_rename_exchange()
418 offset_set(old_dentry, new_index); in simple_offset_destroy()
420 simple_rename_exchange(old_dir, old_dentry, new_di in simple_offset_destroy()
351 simple_offset_rename(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry) simple_offset_rename() argument
753 simple_link(struct dentry * old_dentry,struct inode * dir,struct dentry * dentry) simple_link() argument
835 simple_rename_timestamp(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry) simple_rename_timestamp() argument
850 simple_rename_exchange(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry) simple_rename_exchange() argument
871 simple_rename(const struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) simple_rename() argument
[all...]
H A Dnamei.c3861 * On success the found dentries are stored in @rd.old_dentry,
3915 rd->old_dentry = d1; in __start_renaming()
3941 * On success the found dentries are stored in @rd.old_dentry,
3967 struct dentry *old_dentry, struct qstr *new_last) in __start_renaming_dentry()
3980 trap = lock_rename_child(old_dentry, rd->new_parent); in __start_renaming_dentry()
3983 if (d_unhashed(old_dentry) || in __start_renaming_dentry()
3984 (rd->old_parent && rd->old_parent != old_dentry->d_parent)) { in __start_renaming_dentry()
3996 if (old_dentry == trap) { in __start_renaming_dentry()
4011 rd->old_dentry = dget(old_dentry); in __start_renaming_dentry()
3961 __start_renaming_dentry(struct renamedata * rd,int lookup_flags,struct dentry * old_dentry,struct qstr * new_last) __start_renaming_dentry() argument
4042 start_renaming_dentry(struct renamedata * rd,int lookup_flags,struct dentry * old_dentry,struct qstr * new_last) start_renaming_dentry() argument
4071 start_renaming_two_dentries(struct renamedata * rd,struct dentry * old_dentry,struct dentry * new_dentry) start_renaming_two_dentries() argument
5885 vfs_link(struct dentry * old_dentry,const struct mnt_idmap * idmap,struct inode * dir,struct dentry * new_dentry,struct delegated_inode * delegated_inode) vfs_link() argument
6090 struct dentry *old_dentry = rd->old_dentry; vfs_rename() local
[all...]
H A Dbad_inode.c43 static int bad_inode_link (struct dentry *old_dentry, struct inode *dir, in bad_inode_link() argument
79 struct inode *old_dir, struct dentry *old_dentry, in bad_inode_rename2() argument
/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
/linux/fs/ext2/
H A Dnamei.c202 static int ext2_link (struct dentry * old_dentry, struct inode * dir, in ext2_link() argument
205 struct inode *inode = d_inode(old_dentry); in ext2_link()
320 struct inode * old_dir, struct dentry * old_dentry, in ext2_rename() argument
324 struct inode * old_inode = d_inode(old_dentry); in ext2_rename()
344 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_folio); in ext2_rename()
/linux/fs/hfs/
H A Ddir.c285 struct dentry *old_dentry, struct inode *new_dir, in hfs_rename() argument
300 res = hfs_cat_move(d_inode(old_dentry)->i_ino, in hfs_rename()
301 old_dir, &old_dentry->d_name, in hfs_rename()
304 struct inode *inode = d_inode(old_dentry); in hfs_rename()
/linux/security/landlock/
H A Dfs.c1179 * @old_dentry: File or directory requested to be moved or linked.
1225 * Return: 0 if access is allowed, -EXDEV if @old_dentry would inherit new
1229 static int current_check_refer_path(struct dentry *const old_dentry, in current_check_refer_path() argument
1247 if (unlikely(d_is_negative(old_dentry))) in current_check_refer_path()
1256 access_request_parent2 = get_dentry_access(old_dentry); in current_check_refer_path()
1258 access_request_parent1 |= maybe_remove(old_dentry); in current_check_refer_path()
1272 if (old_dentry->d_parent == new_dir->dentry) { in current_check_refer_path()
1299 * old_dentry may be the root of the common mount point and in current_check_refer_path()
1300 * !IS_ROOT(old_dentry) at the same time (e.g. with open_tree() and in current_check_refer_path()
1305 old_parent = (old_dentry in current_check_refer_path()
1621 hook_path_link(struct dentry * const old_dentry,const struct path * const new_dir,struct dentry * const new_dentry) hook_path_link() argument
1630 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/fs/ocfs2/
H A Dnamei.c684 static int ocfs2_link(struct dentry *old_dentry,
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()
1210 struct dentry *old_dentry, in ocfs2_rename()
1217 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename()
1244 trace_ocfs2_rename(old_dir, old_dentry, new_di in ocfs2_rename()
685 ocfs2_link(struct dentry * old_dentry,struct inode * dir,struct dentry * dentry) ocfs2_link() argument
1211 ocfs2_rename(const struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) ocfs2_rename() argument
[all...]
/linux/fs/9p/
H A Dvfs_inode.c871 * @old_dentry: old dentry in v9fs_vfs_rename()
880 struct dentry *old_dentry, struct inode *new_dir, in v9fs_vfs_rename()
896 old_inode = d_inode(old_dentry); in v9fs_vfs_rename()
899 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_rename()
903 dfid = v9fs_parent_fid(old_dentry); in v9fs_vfs_rename()
925 retval = p9_client_renameat(olddirfid, old_dentry->d_name.name, in v9fs_vfs_rename()
933 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename()
965 d_move(old_dentry, new_dentry);
1287 * @old_dentry: dentry for file to link to in v9fs_vfs_link()
1294 v9fs_vfs_link(struct dentry *old_dentry, struc in v9fs_vfs_link()
862 v9fs_vfs_rename(const struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) v9fs_vfs_rename() argument
1276 v9fs_vfs_link(struct dentry * old_dentry,struct inode * dir,struct dentry * dentry) v9fs_vfs_link() argument
[all...]
H A Dvfs_inode_dotl.c770 * @old_dentry: dentry for file to link to in v9fs_vfs_link_dotl()
777 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link_dotl()
785 dir->i_ino, old_dentry, dentry); in v9fs_vfs_link_dotl()
792 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
812 fid = v9fs_fid_lookup(old_dentry);
816 v9fs_refresh_inode_dotl(fid, d_inode(old_dentry)); in v9fs_vfs_mknod_dotl()
819 ihold(d_inode(old_dentry)); in v9fs_vfs_mknod_dotl()
820 d_instantiate(dentry, d_inode(old_dentry)); in v9fs_vfs_mknod_dotl()
757 v9fs_vfs_link_dotl(struct dentry * old_dentry,struct inode * dir,struct dentry * dentry) v9fs_vfs_link_dotl() argument
/linux/include/linux/
H A Dfscrypt.h455 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry,
754 struct dentry *old_dentry, in __fscrypt_prepare_rename() argument
908 static inline int fscrypt_prepare_link(struct dentry *old_dentry, in fscrypt_prepare_link() argument
913 return __fscrypt_prepare_link(d_inode(old_dentry), dir, dentry); in fscrypt_prepare_link()
940 struct dentry *old_dentry, in fscrypt_prepare_rename() argument
946 return __fscrypt_prepare_rename(old_dir, old_dentry, in fscrypt_prepare_rename()
H A Dnamei.h169 struct dentry *old_dentry, struct qstr *new_last);
171 struct dentry *old_dentry, struct dentry *new_dentry);
/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/nilfs2/
H A Dnamei.c193 static int nilfs_link(struct dentry *old_dentry, struct inode *dir, in nilfs_link() argument
196 struct inode *inode = d_inode(old_dentry); in nilfs_link()
368 struct inode *old_dir, struct dentry *old_dentry, in nilfs_rename()
372 struct inode *old_inode = d_inode(old_dentry); in nilfs_rename()
389 old_de = nilfs_find_entry(old_dir, &old_dentry->d_name, &old_folio); in nilfs_rename()
362 nilfs_rename(const struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) nilfs_rename() argument
/linux/fs/fat/
H A Dnamei_msdos.c443 struct dentry *old_dentry, in do_msdos_rename()
456 old_inode = d_inode(old_dentry); in do_msdos_rename()
615 struct inode *old_dir, struct dentry *old_dentry, in msdos_rename()
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,
434 do_msdos_rename(struct inode * old_dir,unsigned char * old_name,struct dentry * old_dentry,struct inode * new_dir,unsigned char * new_name,struct dentry * new_dentry,int is_hid) do_msdos_rename() argument
604 msdos_rename(const struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) msdos_rename() argument
H A Dnamei_vfat.c941 static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry, in vfat_rename()
954 old_inode = d_inode(old_dentry); in vfat_rename()
957 err = vfat_find(old_dir, &old_dentry->d_name, &old_sinfo); in vfat_rename()
1073 static int vfat_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, in vfat_rename_exchange()
1084 old_inode = d_inode(old_dentry); in vfat_rename_exchange()
1175 struct dentry *old_dentry, struct inode *new_dir, in vfat_rename2()
1182 return vfat_rename_exchange(old_dir, old_dentry,
1187 return vfat_rename(old_dir, old_dentry, new_dir, new_dentry);
932 vfat_rename(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry) vfat_rename() argument
1062 vfat_rename_exchange(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry) vfat_rename_exchange() argument
1164 vfat_rename2(const struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) vfat_rename2() argument
/linux/fs/orangefs/
H A Dnamei.c369 struct dentry *old_dentry, in orangefs_rename() argument
383 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename()
397 strscpy(new_op->upcall.req.rename.d_old_name, old_dentry->d_name.name); in orangefs_rename()
402 get_interruptible_flag(old_dentry->d_inode)); in orangefs_rename()
/linux/fs/ecryptfs/
H A Dinode.c428 static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir, in ecryptfs_link() argument
437 file_size_save = i_size_read(d_inode(old_dentry)); in ecryptfs_link()
438 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_link()
452 set_nlink(d_inode(old_dentry), in ecryptfs_link()
453 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink); in ecryptfs_link()
594 struct dentry *old_dentry, struct inode *new_dir, in ecryptfs_rename() argument
608 lower_old_dir_dentry = ecryptfs_dentry_to_lower(old_dentry->d_parent); in ecryptfs_rename()
611 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_rename()

123