Home
last modified time | relevance | path

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

1234

/linux-6.6.21/fs/nfs/
Dunlink.c268 struct dentry *old_dentry = data->old_dentry; in nfs_async_rename_done() local
270 trace_nfs_sillyrename_rename(old_dir, old_dentry, in nfs_async_rename_done()
290 if (d_really_is_positive(data->old_dentry)) in nfs_async_rename_release()
291 nfs_mark_for_revalidate(d_inode(data->old_dentry)); in nfs_async_rename_release()
306 dput(data->old_dentry); in nfs_async_rename_release()
339 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument
373 data->old_dentry = dget(old_dentry); in nfs_async_rename()
381 data->args.old_name = &old_dentry->d_name; in nfs_async_rename()
391 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); in nfs_async_rename()
403 struct dentry *dentry = data->old_dentry; in nfs_complete_sillyrename()
/linux-6.6.21/fs/jffs2/
Ddir.c247 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument
249 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb); in jffs2_link()
250 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); in jffs2_link()
260 if (d_is_dir(old_dentry)) in jffs2_link()
264 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link()
272 set_nlink(d_inode(old_dentry), ++f->inocache->pino_nlink); in jffs2_link()
274 d_instantiate(dentry, d_inode(old_dentry)); in jffs2_link()
276 ihold(d_inode(old_dentry)); in jffs2_link()
770 struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename() argument
812 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename()
[all …]
/linux-6.6.21/fs/affs/
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-6.6.21/fs/debugfs/
Dinode.c823 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, in debugfs_rename() argument
834 if (IS_ERR_OR_NULL(old_dentry)) in debugfs_rename()
835 return old_dentry; in debugfs_rename()
842 if (d_really_is_negative(old_dentry) || old_dentry == trap || in debugfs_rename()
843 d_mountpoint(old_dentry)) in debugfs_rename()
850 take_dentry_name_snapshot(&old_name, old_dentry); in debugfs_rename()
852 error = simple_rename(&nop_mnt_idmap, d_inode(old_dir), old_dentry, in debugfs_rename()
858 d_move(old_dentry, dentry); in debugfs_rename()
860 d_is_dir(old_dentry), in debugfs_rename()
861 NULL, old_dentry); in debugfs_rename()
[all …]
/linux-6.6.21/fs/sysv/
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()
192 struct dentry *old_dentry, struct inode *new_dir, in sysv_rename() argument
195 struct inode * old_inode = d_inode(old_dentry); in sysv_rename()
206 old_de = sysv_find_entry(old_dentry, &old_page); in sysv_rename()
/linux-6.6.21/security/landlock/
Dfs.c813 static int current_check_refer_path(struct dentry *const old_dentry, in current_check_refer_path() argument
830 if (unlikely(d_is_negative(old_dentry))) in current_check_refer_path()
841 get_mode_access(d_backing_inode(old_dentry)->i_mode); in current_check_refer_path()
843 access_request_parent1 |= maybe_remove(old_dentry); in current_check_refer_path()
848 if (old_dentry->d_parent == new_dir->dentry) { in current_check_refer_path()
872 old_dentry->d_parent, in current_check_refer_path()
888 old_dentry, access_request_parent2, &layer_masks_parent2, in current_check_refer_path()
1102 static int hook_path_link(struct dentry *const old_dentry, in hook_path_link() argument
1106 return current_check_refer_path(old_dentry, new_dir, new_dentry, false, in hook_path_link()
1111 struct dentry *const old_dentry, in hook_path_rename() argument
[all …]
/linux-6.6.21/fs/minix/
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()
178 struct inode *old_dir, struct dentry *old_dentry, in minix_rename() argument
182 struct inode * old_inode = d_inode(old_dentry); in minix_rename()
193 old_de = minix_find_entry(old_dentry, &old_page); in minix_rename()
/linux-6.6.21/fs/
Dlibfs.c323 struct dentry *old_dentry, in simple_offset_rename_exchange() argument
329 u32 old_index = dentry2offset(old_dentry); in simple_offset_rename_exchange()
333 simple_offset_remove(old_ctx, old_dentry); in simple_offset_rename_exchange()
336 ret = simple_offset_add(new_ctx, old_dentry); in simple_offset_rename_exchange()
342 simple_offset_remove(new_ctx, old_dentry); in simple_offset_rename_exchange()
346 ret = simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry); in simple_offset_rename_exchange()
348 simple_offset_remove(new_ctx, old_dentry); in simple_offset_rename_exchange()
355 offset_set(old_dentry, old_index); in simple_offset_rename_exchange()
356 xa_store(&old_ctx->xa, old_index, old_dentry, GFP_KERNEL); in simple_offset_rename_exchange()
646 int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in simple_link() argument
[all …]
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-6.6.21/fs/ufs/
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-6.6.21/fs/f2fs/
Dnamei.c396 static int f2fs_link(struct dentry *old_dentry, struct inode *dir, in f2fs_link() argument
399 struct inode *inode = d_inode(old_dentry); in f2fs_link()
408 err = fscrypt_prepare_link(old_dentry, dir, dentry); in f2fs_link()
414 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_link()
954 struct dentry *old_dentry, struct inode *new_dir, in f2fs_rename() argument
958 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename()
975 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_rename()
1013 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_page); in f2fs_rename()
1097 err = f2fs_add_link(old_dentry, whiteout); in f2fs_rename()
1144 static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry, in f2fs_cross_rename() argument
[all …]
/linux-6.6.21/fs/ubifs/
Ddir.c720 static int ubifs_link(struct dentry *old_dentry, struct inode *dir, in ubifs_link() argument
724 struct inode *inode = d_inode(old_dentry); in ubifs_link()
743 err = fscrypt_prepare_link(old_dentry, dir, dentry); in ubifs_link()
1284 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, in do_rename() argument
1289 struct inode *old_inode = d_inode(old_dentry); in do_rename()
1316 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename()
1335 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm); in do_rename()
1376 whiteout = create_whiteout(old_dir, old_dentry); in do_rename()
1417 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in do_rename()
1547 static int ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry, in ubifs_xrename() argument
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dlocal_storage.c108 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, in BPF_PROG() argument
122 storage = bpf_inode_storage_get(&inode_storage_map, old_dentry->d_inode, in BPF_PROG()
130 err = bpf_inode_storage_delete(&inode_storage_map, old_dentry->d_inode); in BPF_PROG()
/linux-6.6.21/fs/ext2/
Dnamei.c204 static int ext2_link (struct dentry * old_dentry, struct inode * dir, in ext2_link() argument
207 struct inode *inode = d_inode(old_dentry); in ext2_link()
318 struct inode * old_dir, struct dentry * old_dentry, in ext2_rename() argument
322 struct inode * old_inode = d_inode(old_dentry); in ext2_rename()
341 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_page); in ext2_rename()
/linux-6.6.21/fs/hfs/
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-6.6.21/fs/ocfs2/
Dnamei.c679 static int ocfs2_link(struct dentry *old_dentry, in ocfs2_link() argument
684 struct inode *inode = d_inode(old_dentry); in ocfs2_link()
685 struct inode *old_dir = d_inode(old_dentry->d_parent); in ocfs2_link()
697 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_link()
735 err = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_link()
736 old_dentry->d_name.len, &old_de_ino); in ocfs2_link()
1200 struct dentry *old_dentry, in ocfs2_rename() argument
1207 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename()
1234 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1235 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_rename()
[all …]
/linux-6.6.21/include/linux/
Dfscrypt.h367 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry,
683 struct dentry *old_dentry, in __fscrypt_prepare_rename() argument
892 static inline int fscrypt_prepare_link(struct dentry *old_dentry, in fscrypt_prepare_link() argument
897 return __fscrypt_prepare_link(d_inode(old_dentry), dir, dentry); in fscrypt_prepare_link()
924 struct dentry *old_dentry, in fscrypt_prepare_rename() argument
930 return __fscrypt_prepare_rename(old_dir, old_dentry, in fscrypt_prepare_rename()
/linux-6.6.21/security/tomoyo/
Dtomoyo.c263 static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir, in tomoyo_path_link() argument
266 struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry }; in tomoyo_path_link()
284 struct dentry *old_dentry, in tomoyo_path_rename() argument
289 struct path path1 = { .mnt = old_parent->mnt, .dentry = old_dentry }; in tomoyo_path_rename()
/linux-6.6.21/fs/9p/
Dvfs_inode.c895 struct dentry *old_dentry, struct inode *new_dir, in v9fs_vfs_rename() argument
911 old_inode = d_inode(old_dentry); in v9fs_vfs_rename()
914 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_rename()
918 dfid = v9fs_parent_fid(old_dentry); in v9fs_vfs_rename()
940 retval = p9_client_renameat(olddirfid, old_dentry->d_name.name, in v9fs_vfs_rename()
948 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename()
980 d_move(old_dentry, new_dentry); in v9fs_vfs_rename()
1324 v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link() argument
1332 dir->i_ino, dentry, old_dentry); in v9fs_vfs_link()
1334 oldfid = v9fs_fid_clone(old_dentry); in v9fs_vfs_link()
[all …]
Dvfs_inode_dotl.c782 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link_dotl() argument
790 dir->i_ino, old_dentry, dentry); in v9fs_vfs_link_dotl()
797 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
817 fid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
821 v9fs_refresh_inode_dotl(fid, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
824 ihold(d_inode(old_dentry)); in v9fs_vfs_link_dotl()
825 d_instantiate(dentry, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
/linux-6.6.21/fs/nilfs2/
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-6.6.21/fs/crypto/
Dhooks.c69 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, in __fscrypt_prepare_rename() argument
73 if (fscrypt_is_nokey_name(old_dentry) || in __fscrypt_prepare_rename()
84 d_inode(old_dentry))) in __fscrypt_prepare_rename()
/linux-6.6.21/fs/fat/
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-6.6.21/fs/orangefs/
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-6.6.21/fs/ecryptfs/
Dinode.c432 static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir, in ecryptfs_link() argument
441 file_size_save = i_size_read(d_inode(old_dentry)); in ecryptfs_link()
442 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()
586 struct dentry *old_dentry, struct inode *new_dir, in ecryptfs_rename() argument
601 lower_old_dir_dentry = ecryptfs_dentry_to_lower(old_dentry->d_parent); in ecryptfs_rename()
604 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_rename()
629 rd.old_dentry = lower_old_dentry; in ecryptfs_rename()

1234