/fs/nfs/ |
D | unlink.c | 267 struct dentry *old_dentry = data->old_dentry; in nfs_async_rename_done() local 269 trace_nfs_sillyrename_rename(old_dir, old_dentry, in nfs_async_rename_done() 289 if (d_really_is_positive(data->old_dentry)) in nfs_async_rename_release() 290 nfs_mark_for_revalidate(d_inode(data->old_dentry)); in nfs_async_rename_release() 305 dput(data->old_dentry); in nfs_async_rename_release() 338 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument 371 data->old_dentry = dget(old_dentry); in nfs_async_rename() 379 data->args.old_name = &old_dentry->d_name; in nfs_async_rename() 389 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); in nfs_async_rename() 401 struct dentry *dentry = data->old_dentry; in nfs_complete_sillyrename()
|
D | nfstrace.h | 745 const struct dentry *old_dentry, 750 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry), 756 __string(old_name, old_dentry->d_name.name) 764 __assign_str(old_name, old_dentry->d_name.name); 782 const struct dentry *old_dentry, \ 786 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry)) 791 const struct dentry *old_dentry, 797 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error), 803 __string(old_name, old_dentry->d_name.name) 813 __assign_str(old_name, old_dentry->d_name.name); [all …]
|
/fs/jffs2/ |
D | dir.c | 246 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument 248 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb); in jffs2_link() 249 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); in jffs2_link() 259 if (d_is_dir(old_dentry)) in jffs2_link() 263 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link() 271 set_nlink(d_inode(old_dentry), ++f->inocache->pino_nlink); in jffs2_link() 273 d_instantiate(dentry, d_inode(old_dentry)); in jffs2_link() 275 ihold(d_inode(old_dentry)); in jffs2_link() 766 struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename() argument 808 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename() [all …]
|
/fs/affs/ |
D | namei.c | 394 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 …]
|
/fs/debugfs/ |
D | inode.c | 791 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, in debugfs_rename() argument 802 if (IS_ERR_OR_NULL(old_dentry)) in debugfs_rename() 803 return old_dentry; in debugfs_rename() 810 if (d_really_is_negative(old_dentry) || old_dentry == trap || in debugfs_rename() 811 d_mountpoint(old_dentry)) in debugfs_rename() 818 take_dentry_name_snapshot(&old_name, old_dentry); in debugfs_rename() 820 error = simple_rename(&init_user_ns, d_inode(old_dir), old_dentry, in debugfs_rename() 826 d_move(old_dentry, dentry); in debugfs_rename() 828 d_is_dir(old_dentry), in debugfs_rename() 829 NULL, old_dentry); in debugfs_rename() [all …]
|
/fs/sysv/ |
D | namei.c | 101 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() 193 struct dentry *old_dentry, struct inode *new_dir, in sysv_rename() argument 196 struct inode * old_inode = d_inode(old_dentry); in sysv_rename() 207 old_de = sysv_find_entry(old_dentry, &old_page); in sysv_rename()
|
/fs/f2fs/ |
D | namei.c | 392 static int f2fs_link(struct dentry *old_dentry, struct inode *dir, in f2fs_link() argument 395 struct inode *inode = d_inode(old_dentry); in f2fs_link() 404 err = fscrypt_prepare_link(old_dentry, dir, dentry); in f2fs_link() 410 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_link() 950 struct dentry *old_dentry, struct inode *new_dir, in f2fs_rename() argument 954 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename() 971 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_rename() 1009 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_page); in f2fs_rename() 1093 err = f2fs_add_link(old_dentry, whiteout); in f2fs_rename() 1140 static int f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry, in f2fs_cross_rename() argument [all …]
|
/fs/minix/ |
D | namei.c | 103 static int minix_link(struct dentry * old_dentry, struct inode * dir, in minix_link() argument 106 struct inode *inode = d_inode(old_dentry); in minix_link() 188 struct inode *old_dir, struct dentry *old_dentry, in minix_rename() argument 192 struct inode * old_inode = d_inode(old_dentry); in minix_rename() 203 old_de = minix_find_entry(old_dentry, &old_page); in minix_rename()
|
/fs/ufs/ |
D | namei.c | 150 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()
|
/fs/ubifs/ |
D | dir.c | 720 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() 1317 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename() 1336 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm); in do_rename() 1377 whiteout = create_whiteout(old_dir, old_dentry); in do_rename() 1552 static int ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry, in ubifs_xrename() argument 1559 struct inode *fst_inode = d_inode(old_dentry); in ubifs_xrename() [all …]
|
/fs/ext2/ |
D | namei.c | 207 static int ext2_link (struct dentry * old_dentry, struct inode * dir, in ext2_link() argument 210 struct inode *inode = d_inode(old_dentry); in ext2_link() 325 struct inode * old_dir, struct dentry * old_dentry, in ext2_rename() argument 329 struct inode * old_inode = d_inode(old_dentry); in ext2_rename() 350 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_page, in ext2_rename()
|
/fs/ocfs2/ |
D | namei.c | 679 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 …]
|
/fs/hfs/ |
D | dir.c | 284 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()
|
/fs/9p/ |
D | vfs_inode.c | 920 struct dentry *old_dentry, struct inode *new_dir, in v9fs_vfs_rename() argument 937 old_inode = d_inode(old_dentry); in v9fs_vfs_rename() 940 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_rename() 944 dfid = v9fs_parent_fid(old_dentry); in v9fs_vfs_rename() 965 retval = p9_client_renameat(olddirfid, old_dentry->d_name.name, in v9fs_vfs_rename() 973 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename() 1005 d_move(old_dentry, new_dentry); in v9fs_vfs_rename() 1328 v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link() argument 1336 dir->i_ino, dentry, old_dentry); in v9fs_vfs_link() 1338 oldfid = v9fs_fid_clone(old_dentry); in v9fs_vfs_link() [all …]
|
D | vfs_inode_dotl.c | 790 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link_dotl() argument 798 dir->i_ino, old_dentry, dentry); in v9fs_vfs_link_dotl() 805 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl() 825 fid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl() 829 v9fs_refresh_inode_dotl(fid, d_inode(old_dentry)); in v9fs_vfs_link_dotl() 832 ihold(d_inode(old_dentry)); in v9fs_vfs_link_dotl() 833 d_instantiate(dentry, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
|
/fs/ecryptfs/ |
D | inode.c | 430 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() 452 set_nlink(d_inode(old_dentry), in ecryptfs_link() 453 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink); in ecryptfs_link() 584 struct dentry *old_dentry, struct inode *new_dir, in ecryptfs_rename() argument 599 lower_old_dir_dentry = ecryptfs_dentry_to_lower(old_dentry->d_parent); in ecryptfs_rename() 602 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_rename() 627 rd.old_dentry = lower_old_dentry; in ecryptfs_rename()
|
/fs/nilfs2/ |
D | namei.c | 177 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()
|
/fs/fat/ |
D | namei_msdos.c | 429 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()
|
/fs/crypto/ |
D | hooks.c | 69 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()
|
/fs/orangefs/ |
D | namei.c | 380 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()
|
/fs/ |
D | namei.c | 4509 int vfs_link(struct dentry *old_dentry, struct user_namespace *mnt_userns, in vfs_link() argument 4513 struct inode *inode = old_dentry->d_inode; in vfs_link() 4544 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link() 4557 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link() 4715 struct dentry *old_dentry = rd->old_dentry; in vfs_rename() local 4719 bool is_dir = d_is_dir(old_dentry); in vfs_rename() 4720 struct inode *source = old_dentry->d_inode; in vfs_rename() 4730 error = may_delete(rd->old_mnt_userns, old_dir, old_dentry, is_dir); in vfs_rename() 4771 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry, in vfs_rename() 4776 take_dentry_name_snapshot(&old_name, old_dentry); in vfs_rename() [all …]
|
D | bad_inode.c | 43 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
|
/fs/reiserfs/ |
D | namei.c | 1204 static int reiserfs_link(struct dentry *old_dentry, struct inode *dir, in reiserfs_link() argument 1208 struct inode *inode = d_inode(old_dentry); in reiserfs_link() 1315 struct inode *old_dir, struct dentry *old_dentry, in reiserfs_rename() argument 1356 old_inode = d_inode(old_dentry); in reiserfs_rename() 1366 reiserfs_find_entry(old_dir, old_dentry->d_name.name, in reiserfs_rename() 1367 old_dentry->d_name.len, &old_entry_path, in reiserfs_rename() 1532 !entry_points_to_object(old_dentry->d_name.name, in reiserfs_rename() 1533 old_dentry->d_name.len, in reiserfs_rename()
|
/fs/jfs/ |
D | namei.c | 785 static int jfs_link(struct dentry *old_dentry, in jfs_link() argument 790 struct inode *ip = d_inode(old_dentry); in jfs_link() 796 jfs_info("jfs_link: %pd %pd", old_dentry, dentry); in jfs_link() 1068 struct dentry *old_dentry, struct inode *new_dir, in jfs_rename() argument 1091 jfs_info("jfs_rename: %pd %pd", old_dentry, new_dentry); in jfs_rename() 1100 old_ip = d_inode(old_dentry); in jfs_rename() 1103 if ((rc = get_UCSname(&old_dname, old_dentry))) in jfs_rename()
|
/fs/hfsplus/ |
D | dir.c | 533 struct inode *old_dir, struct dentry *old_dentry, in hfsplus_rename() argument 552 res = hfsplus_rename_cat((u32)(unsigned long)old_dentry->d_fsdata, in hfsplus_rename() 553 old_dir, &old_dentry->d_name, in hfsplus_rename() 556 new_dentry->d_fsdata = old_dentry->d_fsdata; in hfsplus_rename()
|