/kernel/linux/linux-5.10/fs/nfs/ |
D | unlink.c | 263 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()
|
D | nfstrace.h | 740 const struct dentry *old_dentry, 745 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry), 751 __string(old_name, old_dentry->d_name.name) 759 __assign_str(old_name, old_dentry->d_name.name); 777 const struct dentry *old_dentry, \ 781 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry)) 786 const struct dentry *old_dentry, 792 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error), 798 __string(old_name, old_dentry->d_name.name) 808 __assign_str(old_name, old_dentry->d_name.name); [all …]
|
/kernel/linux/linux-5.10/fs/affs/ |
D | namei.c | 391 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in affs_link() argument 393 struct inode *inode = d_inode(old_dentry); in affs_link() 402 affs_rename(struct inode *old_dir, struct dentry *old_dentry, in affs_rename() argument 411 affs_nofilenametruncate(old_dentry)); in affs_rename() 423 bh = affs_bread(sb, d_inode(old_dentry)->i_ino); in affs_rename() 449 affs_xrename(struct inode *old_dir, struct dentry *old_dentry, in affs_xrename() argument 458 bh_old = affs_bread(sb, d_inode(old_dentry)->i_ino); in affs_xrename() 490 affs_copy_name(AFFS_TAIL(sb, bh_new)->name, old_dentry); in affs_xrename() 503 int affs_rename2(struct inode *old_dir, struct dentry *old_dentry, in affs_rename2() argument 512 old_dir->i_ino, old_dentry, new_dir->i_ino, new_dentry); in affs_rename2() [all …]
|
/kernel/linux/linux-5.10/fs/jffs2/ |
D | dir.c | 243 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument 245 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb); in jffs2_link() 246 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); in jffs2_link() 256 if (d_is_dir(old_dentry)) in jffs2_link() 260 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link() 268 set_nlink(d_inode(old_dentry), ++f->inocache->pino_nlink); in jffs2_link() 270 d_instantiate(dentry, d_inode(old_dentry)); in jffs2_link() 272 ihold(d_inode(old_dentry)); in jffs2_link() 759 static int jffs2_rename (struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename() argument 801 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename() [all …]
|
/kernel/linux/linux-5.10/fs/debugfs/ |
D | inode.c | 777 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, in debugfs_rename() argument 788 if (IS_ERR_OR_NULL(old_dentry)) in debugfs_rename() 789 return old_dentry; in debugfs_rename() 796 if (d_really_is_negative(old_dentry) || old_dentry == trap || in debugfs_rename() 797 d_mountpoint(old_dentry)) in debugfs_rename() 804 take_dentry_name_snapshot(&old_name, old_dentry); in debugfs_rename() 806 error = simple_rename(d_inode(old_dir), old_dentry, d_inode(new_dir), in debugfs_rename() 812 d_move(old_dentry, dentry); in debugfs_rename() 814 d_is_dir(old_dentry), in debugfs_rename() 815 NULL, old_dentry); in debugfs_rename() [all …]
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | inode_local.c | 616 int hmdfs_rename_local_dentry(struct inode *old_dir, struct dentry *old_dentry, in hmdfs_rename_local_dentry() argument 633 hmdfs_get_lower_path(old_dentry, &lower_old_path); in hmdfs_rename_local_dentry() 670 dget(old_dentry); in hmdfs_rename_local_dentry() 677 hmdfs_drop_remote_cache_dents(old_dentry->d_parent); in hmdfs_rename_local_dentry() 678 if (old_dentry->d_parent != new_dentry->d_parent) in hmdfs_rename_local_dentry() 681 hmdfs_clear_drop_flag(old_dentry->d_parent); in hmdfs_rename_local_dentry() 682 if (old_dentry->d_parent != new_dentry->d_parent) in hmdfs_rename_local_dentry() 683 hmdfs_clear_drop_flag(old_dentry->d_parent); in hmdfs_rename_local_dentry() 687 dput(old_dentry); in hmdfs_rename_local_dentry() 698 int hmdfs_rename_local(struct inode *old_dir, struct dentry *old_dentry, in hmdfs_rename_local() argument [all …]
|
D | inode_remote.c | 754 static void rename_in_cache_file(uint64_t dev_id, struct dentry *old_dentry, in rename_in_cache_file() argument 760 old_item = hmdfs_find_cache_item(dev_id, old_dentry->d_parent); in rename_in_cache_file() 763 hmdfs_rename_dentry(old_dentry, new_dentry, old_item->filp, in rename_in_cache_file() 779 int hmdfs_rename_remote(struct inode *old_dir, struct dentry *old_dentry, in hmdfs_rename_remote() argument 785 const char *old_dentry_d_name = old_dentry->d_name.name; in hmdfs_rename_remote() 789 struct hmdfs_inode_info *info = hmdfs_i(old_dentry->d_inode); in hmdfs_rename_remote() 792 trace_hmdfs_rename_remote(old_dir, old_dentry, new_dir, new_dentry, in hmdfs_rename_remote() 798 if (hmdfs_file_type(old_dentry->d_name.name) != HMDFS_TYPE_COMMON || in hmdfs_rename_remote() 808 if (hmdfs_d(old_dentry)->device_id != hmdfs_d(new_dentry)->device_id) in hmdfs_rename_remote() 812 hmdfs_get_dentry_relative_path(old_dentry->d_parent); in hmdfs_rename_remote() [all …]
|
D | inode_cloud_merge.c | 662 ret = do_rename_merge(rename_para->old_dir, rename_para->old_dentry, in rename_lo_d_cloud_child() 673 struct dentry *old_dentry, in hmdfs_rename_cloud_merge() argument 679 struct hmdfs_rename_para rename_para = { old_dir, old_dentry, new_dir, in hmdfs_rename_cloud_merge() 683 if (hmdfs_file_type(old_dentry->d_name.name) != HMDFS_TYPE_COMMON || in hmdfs_rename_cloud_merge() 695 if (hmdfs_d(old_dentry)->device_id != hmdfs_d(new_dentry)->device_id) { in hmdfs_rename_cloud_merge() 705 trace_hmdfs_rename_merge(old_dir, old_dentry, new_dir, new_dentry, in hmdfs_rename_cloud_merge() 718 if (S_ISREG(old_dentry->d_inode->i_mode) && !ret) in hmdfs_rename_cloud_merge() 719 d_invalidate(old_dentry); in hmdfs_rename_cloud_merge()
|
D | hmdfs_merge_view.h | 65 struct dentry *old_dentry; member 131 int hmdfs_rename_merge(struct inode *old_dir, struct dentry *old_dentry, 134 int do_rename_merge(struct inode *old_dir, struct dentry *old_dentry,
|
/kernel/linux/linux-5.10/fs/minix/ |
D | namei.c | 101 static int minix_link(struct dentry * old_dentry, struct inode * dir, in minix_link() argument 104 struct inode *inode = d_inode(old_dentry); in minix_link() 184 static int minix_rename(struct inode * old_dir, struct dentry *old_dentry, in minix_rename() argument 188 struct inode * old_inode = d_inode(old_dentry); in minix_rename() 199 old_de = minix_find_entry(old_dentry, &old_page); in minix_rename()
|
/kernel/linux/linux-5.10/fs/sysv/ |
D | namei.c | 99 static int sysv_link(struct dentry * old_dentry, struct inode * dir, in sysv_link() argument 102 struct inode *inode = d_inode(old_dentry); in sysv_link() 189 static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry, in sysv_rename() argument 193 struct inode * old_inode = d_inode(old_dentry); in sysv_rename() 204 old_de = sysv_find_entry(old_dentry, &old_page); in sysv_rename()
|
/kernel/linux/linux-5.10/fs/f2fs/ |
D | namei.c | 381 static int f2fs_link(struct dentry *old_dentry, struct inode *dir, in f2fs_link() argument 384 struct inode *inode = d_inode(old_dentry); in f2fs_link() 393 err = fscrypt_prepare_link(old_dentry, dir, dentry); in f2fs_link() 399 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_link() 913 static int f2fs_rename(struct inode *old_dir, struct dentry *old_dentry, in f2fs_rename() argument 918 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename() 935 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_rename() 973 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_page); in f2fs_rename() 1057 err = f2fs_add_link(old_dentry, whiteout); in f2fs_rename() 1105 static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry, in f2fs_cross_rename() argument [all …]
|
/kernel/linux/linux-5.10/fs/ufs/ |
D | namei.c | 148 static int ufs_link (struct dentry * old_dentry, struct inode * dir, in ufs_link() argument 151 struct inode *inode = d_inode(old_dentry); in ufs_link() 243 static int ufs_rename(struct inode *old_dir, struct dentry *old_dentry, 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_page); in ufs_rename()
|
/kernel/linux/linux-5.10/fs/ext2/ |
D | namei.c | 204 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 static int ext2_rename (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()
|
/kernel/linux/linux-5.10/fs/hfs/ |
D | dir.c | 282 static int hfs_rename(struct inode *old_dir, struct dentry *old_dentry, in hfs_rename() argument 298 res = hfs_cat_move(d_inode(old_dentry)->i_ino, in hfs_rename() 299 old_dir, &old_dentry->d_name, in hfs_rename() 303 (btree_key *)&HFS_I(d_inode(old_dentry))->cat_key, in hfs_rename()
|
/kernel/linux/linux-5.10/fs/ubifs/ |
D | dir.c | 721 static int ubifs_link(struct dentry *old_dentry, struct inode *dir, in ubifs_link() argument 725 struct inode *inode = d_inode(old_dentry); in ubifs_link() 744 err = fscrypt_prepare_link(old_dentry, dir, dentry); in ubifs_link() 1282 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, in do_rename() argument 1287 struct inode *old_inode = d_inode(old_dentry); in do_rename() 1315 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename() 1332 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm); in do_rename() 1373 whiteout = create_whiteout(old_dir, old_dentry); in do_rename() 1548 static int ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry, in ubifs_xrename() argument 1555 struct inode *fst_inode = d_inode(old_dentry); in ubifs_xrename() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | fscrypt.h | 240 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, 526 struct dentry *old_dentry, in __fscrypt_prepare_rename() argument 730 static inline int fscrypt_prepare_link(struct dentry *old_dentry, in fscrypt_prepare_link() argument 735 return __fscrypt_prepare_link(d_inode(old_dentry), dir, dentry); in fscrypt_prepare_link() 762 struct dentry *old_dentry, in fscrypt_prepare_rename() argument 768 return __fscrypt_prepare_rename(old_dir, old_dentry, in fscrypt_prepare_rename()
|
/kernel/linux/linux-5.10/fs/9p/ |
D | vfs_inode.c | 897 v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry, in v9fs_vfs_rename() argument 915 old_inode = d_inode(old_dentry); in v9fs_vfs_rename() 918 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_rename() 922 olddirfid = clone_fid(v9fs_parent_fid(old_dentry)); in v9fs_vfs_rename() 936 retval = p9_client_renameat(olddirfid, old_dentry->d_name.name, in v9fs_vfs_rename() 944 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename() 976 d_move(old_dentry, new_dentry); in v9fs_vfs_rename() 1288 v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link() argument 1296 dir->i_ino, dentry, old_dentry); in v9fs_vfs_link() 1298 oldfid = v9fs_fid_clone(old_dentry); in v9fs_vfs_link() [all …]
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
D | namei.c | 675 static int ocfs2_link(struct dentry *old_dentry, in ocfs2_link() argument 680 struct inode *inode = d_inode(old_dentry); in ocfs2_link() 681 struct inode *old_dir = d_inode(old_dentry->d_parent); in ocfs2_link() 693 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_link() 731 err = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_link() 732 old_dentry->d_name.len, &old_de_ino); in ocfs2_link() 1195 struct dentry *old_dentry, in ocfs2_rename() argument 1202 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename() 1229 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename() 1230 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_rename() [all …]
|
/kernel/linux/linux-5.10/security/tomoyo/ |
D | tomoyo.c | 252 static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir, in tomoyo_path_link() argument 255 struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry }; in tomoyo_path_link() 272 struct dentry *old_dentry, in tomoyo_path_rename() argument 276 struct path path1 = { .mnt = old_parent->mnt, .dentry = old_dentry }; in tomoyo_path_rename()
|
/kernel/linux/linux-5.10/fs/nilfs2/ |
D | namei.c | 176 static int nilfs_link(struct dentry *old_dentry, struct inode *dir, in nilfs_link() argument 179 struct inode *inode = d_inode(old_dentry); in nilfs_link() 341 static int nilfs_rename(struct inode *old_dir, struct dentry *old_dentry, in nilfs_rename() argument 345 struct inode *old_inode = d_inode(old_dentry); in nilfs_rename() 362 old_de = nilfs_find_entry(old_dir, &old_dentry->d_name, &old_page); in nilfs_rename()
|
/kernel/linux/linux-5.10/fs/crypto/ |
D | hooks.c | 72 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, in __fscrypt_prepare_rename() argument 87 if (fscrypt_is_nokey_name(old_dentry) || in __fscrypt_prepare_rename() 94 d_inode(old_dentry))) in __fscrypt_prepare_rename()
|
/kernel/linux/linux-5.10/fs/fat/ |
D | namei_msdos.c | 428 struct dentry *old_dentry, in do_msdos_rename() argument 441 old_inode = d_inode(old_dentry); in do_msdos_rename() 596 static int msdos_rename(struct inode *old_dir, struct dentry *old_dentry, in msdos_rename() argument 609 err = msdos_format_name(old_dentry->d_name.name, in msdos_rename() 610 old_dentry->d_name.len, old_msdos_name, in msdos_rename() 623 err = do_msdos_rename(old_dir, old_msdos_name, old_dentry, in msdos_rename()
|
/kernel/linux/linux-5.10/fs/orangefs/ |
D | namei.c | 376 struct dentry *old_dentry, in orangefs_rename() argument 390 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename() 405 old_dentry->d_name.name, in orangefs_rename() 413 get_interruptible_flag(old_dentry->d_inode)); in orangefs_rename()
|
/kernel/linux/linux-5.10/fs/ |
D | bad_inode.c | 42 static int bad_inode_link (struct dentry *old_dentry, struct inode *dir, in bad_inode_link() argument 76 static int bad_inode_rename2(struct inode *old_dir, struct dentry *old_dentry, in bad_inode_rename2() argument
|