/kernel/linux/linux-5.10/fs/affs/ |
D | namei.c | 403 struct inode *new_dir, struct dentry *new_dentry) in affs_rename() argument 409 retval = affs_check_name(new_dentry->d_name.name, in affs_rename() 410 new_dentry->d_name.len, in affs_rename() 417 if (d_really_is_positive(new_dentry)) { in affs_rename() 418 retval = affs_remove_header(new_dentry); in affs_rename() 435 affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry); in affs_rename() 450 struct inode *new_dir, struct dentry *new_dentry) in affs_xrename() argument 462 bh_new = affs_bread(sb, d_inode(new_dentry)->i_ino); in affs_xrename() 483 affs_copy_name(AFFS_TAIL(sb, bh_old)->name, new_dentry); in affs_xrename() 504 struct inode *new_dir, struct dentry *new_dentry, in affs_rename2() argument [all …]
|
/kernel/linux/linux-5.10/fs/ |
D | init.c | 168 struct dentry *new_dentry; in init_link() local 176 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link() 177 error = PTR_ERR(new_dentry); in init_link() 178 if (IS_ERR(new_dentry)) in init_link() 187 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link() 190 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, in init_link() 193 done_path_create(&new_path, new_dentry); in init_link()
|
D | namei.c | 4095 int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode … in vfs_link() argument 4104 error = may_create(dir, new_dentry); in vfs_link() 4128 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link() 4141 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link() 4151 fsnotify_link(dir, inode, new_dentry); in vfs_link() 4168 struct dentry *new_dentry; in do_linkat() local 4194 new_dentry = user_path_create(newdfd, newname, &new_path, in do_linkat() 4196 error = PTR_ERR(new_dentry); in do_linkat() 4197 if (IS_ERR(new_dentry)) in do_linkat() 4206 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat() [all …]
|
/kernel/linux/linux-5.10/fs/nfs/ |
D | unlink.c | 266 new_dir, data->new_dentry, task->tk_status); in nfs_async_rename_done() 302 dput(data->new_dentry); in nfs_async_rename_release() 334 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument 364 data->new_dentry = dget(new_dentry); in nfs_async_rename() 373 data->args.new_name = &new_dentry->d_name; in nfs_async_rename() 381 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); in nfs_async_rename()
|
/kernel/linux/linux-5.10/fs/orangefs/ |
D | namei.c | 378 struct dentry *new_dentry, in orangefs_rename() argument 390 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename() 408 new_dentry->d_name.name, in orangefs_rename() 419 if (new_dentry->d_inode) in orangefs_rename() 420 new_dentry->d_inode->i_ctime = current_time(new_dentry->d_inode); in orangefs_rename()
|
/kernel/linux/linux-5.10/fs/hfs/ |
D | dir.c | 283 struct inode *new_dir, struct dentry *new_dentry, in hfs_rename() argument 292 if (d_really_is_positive(new_dentry)) { in hfs_rename() 293 res = hfs_remove(new_dir, new_dentry); in hfs_rename() 300 new_dir, &new_dentry->d_name); in hfs_rename() 304 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
|
/kernel/linux/linux-5.10/fs/sysv/ |
D | namei.c | 190 struct inode * new_dir, struct dentry * new_dentry, in sysv_rename() argument 194 struct inode * new_inode = d_inode(new_dentry); in sysv_rename() 224 new_de = sysv_find_entry(new_dentry, &new_page); in sysv_rename() 233 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
|
/kernel/linux/linux-5.10/fs/minix/ |
D | namei.c | 185 struct inode * new_dir, struct dentry *new_dentry, in minix_rename() argument 189 struct inode * new_inode = d_inode(new_dentry); in minix_rename() 219 new_de = minix_find_entry(new_dentry, &new_page); in minix_rename() 228 err = minix_add_link(new_dentry, old_inode); in minix_rename()
|
/kernel/linux/linux-5.10/fs/jffs2/ |
D | dir.c | 760 struct inode *new_dir_i, struct dentry *new_dentry, in jffs2_rename() argument 777 if (d_really_is_positive(new_dentry)) { in jffs2_rename() 778 victim_f = JFFS2_INODE_INFO(d_inode(new_dentry)); in jffs2_rename() 779 if (d_is_dir(new_dentry)) { in jffs2_rename() 807 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename() 814 if (d_is_dir(new_dentry)) in jffs2_rename() 815 clear_nlink(d_inode(new_dentry)); in jffs2_rename() 817 drop_nlink(d_inode(new_dentry)); in jffs2_rename() 822 if (d_is_dir(new_dentry)) in jffs2_rename() 859 d_invalidate(new_dentry); in jffs2_rename()
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | inode_local.c | 618 struct inode *new_dir, struct dentry *new_dentry, in hmdfs_rename_local_dentry() argument 642 hmdfs_get_lower_path(new_dentry, &lower_new_path); in hmdfs_rename_local_dentry() 679 if (old_dentry->d_parent != new_dentry->d_parent) in hmdfs_rename_local_dentry() 680 hmdfs_drop_remote_cache_dents(new_dentry->d_parent); in hmdfs_rename_local_dentry() 683 if (old_dentry->d_parent != new_dentry->d_parent) in hmdfs_rename_local_dentry() 685 d_drop(new_dentry); in hmdfs_rename_local_dentry() 700 struct inode *new_dir, struct dentry *new_dentry, in hmdfs_rename_local() argument 706 trace_hmdfs_rename_local(old_dir, old_dentry, new_dir, new_dentry, in hmdfs_rename_local() 709 hmdfs_file_type(new_dentry->d_name.name) != HMDFS_TYPE_COMMON) { in hmdfs_rename_local() 720 if (hmdfs_d(old_dentry)->device_id != hmdfs_d(new_dentry)->device_id) { in hmdfs_rename_local() [all …]
|
D | inode_remote.c | 755 struct dentry *new_dentry) in rename_in_cache_file() argument 761 new_item = hmdfs_find_cache_item(dev_id, new_dentry->d_parent); in rename_in_cache_file() 763 hmdfs_rename_dentry(old_dentry, new_dentry, old_item->filp, in rename_in_cache_file() 780 struct inode *new_dir, struct dentry *new_dentry, in hmdfs_rename_remote() argument 787 const char *new_dentry_d_name = new_dentry->d_name.name; in hmdfs_rename_remote() 792 trace_hmdfs_rename_remote(old_dir, old_dentry, new_dir, new_dentry, in hmdfs_rename_remote() 799 hmdfs_file_type(new_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() 814 hmdfs_get_dentry_relative_path(new_dentry->d_parent); in hmdfs_rename_remote() 828 new_dentry); in hmdfs_rename_remote() [all …]
|
D | hmdfs_dentryfile.c | 1092 struct dentry *new_dentry = NULL; in hmdfs_linkat() local 1096 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in hmdfs_linkat() 1097 if (IS_ERR(new_dentry)) { in hmdfs_linkat() 1099 PTR_ERR(new_dentry)); in hmdfs_linkat() 1100 return PTR_ERR(new_dentry); in hmdfs_linkat() 1107 error = vfs_link(old_path->dentry, new_path.dentry->d_inode, new_dentry, in hmdfs_linkat() 1111 done_path_create(&new_path, new_dentry); in hmdfs_linkat() 1314 int hmdfs_rename_dentry(struct dentry *old_dentry, struct dentry *new_dentry, in hmdfs_rename_dentry() argument 1318 struct hmdfs_sb_info *sbi = hmdfs_sb(new_dentry->d_sb); in hmdfs_rename_dentry() 1324 hmdfs_delete_dentry(new_dentry, new_filp); in hmdfs_rename_dentry() [all …]
|
D | hmdfs_merge_view.h | 67 struct dentry *new_dentry; member 132 struct inode *new_dir, struct dentry *new_dentry, 135 struct inode *new_dir, struct dentry *new_dentry,
|
D | inode_cloud_merge.c | 635 struct dentry *d_parent = dget_parent(rename_para->new_dentry); in rename_lo_d_cloud_child() 654 rename_para->new_dir, rename_para->new_dentry, in rename_lo_d_cloud_child() 666 struct dentry *new_dentry, in hmdfs_rename_cloud_merge() argument 671 new_dentry, flags }; in hmdfs_rename_cloud_merge() 675 hmdfs_file_type(new_dentry->d_name.name) != HMDFS_TYPE_COMMON) { in hmdfs_rename_cloud_merge() 691 trace_hmdfs_rename_merge(old_dir, old_dentry, new_dir, new_dentry, in hmdfs_rename_cloud_merge() 697 d_drop(new_dentry); in hmdfs_rename_cloud_merge()
|
/kernel/linux/linux-5.10/fs/f2fs/ |
D | namei.c | 914 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename() argument 919 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename() 947 err = f2fs_try_convert_inline_dir(old_dir, new_dentry); in f2fs_rename() 996 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename() 1031 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename() 1106 struct inode *new_dir, struct dentry *new_dentry) in f2fs_cross_rename() argument 1110 struct inode *new_inode = d_inode(new_dentry); in f2fs_cross_rename() 1128 F2FS_I(new_dentry->d_inode)->i_projid))) in f2fs_cross_rename() 1147 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, &new_page); in f2fs_cross_rename() 1271 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename2() argument [all …]
|
/kernel/linux/linux-5.10/fs/coda/ |
D | dir.c | 295 struct inode *new_dir, struct dentry *new_dentry, in coda_rename() argument 299 const char *new_name = new_dentry->d_name.name; in coda_rename() 301 int new_length = new_dentry->d_name.len; in coda_rename() 311 if (d_really_is_positive(new_dentry)) { in coda_rename() 312 if (d_is_dir(new_dentry)) { in coda_rename() 318 coda_flag_inode(d_inode(new_dentry), C_VATTR); in coda_rename()
|
/kernel/linux/linux-5.10/fs/afs/ |
D | dir.c | 41 struct inode *new_dir, struct dentry *new_dentry, 1780 struct dentry *new_dentry = op->dentry_2; in afs_rename_edit_dir() local 1804 afs_edit_dir_remove(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir() 1807 afs_edit_dir_add(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir() 1811 new_inode = d_inode(new_dentry); in afs_rename_edit_dir() 1830 d_move(old_dentry, new_dentry); in afs_rename_edit_dir() 1857 struct inode *new_dir, struct dentry *new_dentry, in afs_rename() argument 1879 new_dentry); in afs_rename() 1895 op->dentry_2 = new_dentry; in afs_rename() 1896 op->rename.new_negative = d_is_negative(new_dentry); in afs_rename() [all …]
|
/kernel/linux/linux-5.10/fs/ufs/ |
D | namei.c | 244 struct inode *new_dir, struct dentry *new_dentry, in ufs_rename() argument 248 struct inode *new_inode = d_inode(new_dentry); in ufs_rename() 278 new_de = ufs_find_entry(new_dir, &new_dentry->d_name, &new_page); in ufs_rename() 287 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
|
/kernel/linux/linux-5.10/fs/hfsplus/ |
D | dir.c | 532 struct inode *new_dir, struct dentry *new_dentry, in hfsplus_rename() argument 541 if (d_really_is_positive(new_dentry)) { in hfsplus_rename() 542 if (d_is_dir(new_dentry)) in hfsplus_rename() 543 res = hfsplus_rmdir(new_dir, new_dentry); in hfsplus_rename() 545 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename() 552 new_dir, &new_dentry->d_name); in hfsplus_rename() 554 new_dentry->d_fsdata = old_dentry->d_fsdata; in hfsplus_rename()
|
/kernel/linux/linux-5.10/fs/fat/ |
D | namei_msdos.c | 430 struct dentry *new_dentry, int is_hid) in do_msdos_rename() argument 442 new_inode = d_inode(new_dentry); in do_msdos_rename() 597 struct inode *new_dir, struct dentry *new_dentry, in msdos_rename() argument 614 err = msdos_format_name(new_dentry->d_name.name, in msdos_rename() 615 new_dentry->d_name.len, new_msdos_name, in msdos_rename() 621 (new_dentry->d_name.name[0] == '.') && (new_msdos_name[0] != '.'); in msdos_rename() 624 new_dir, new_msdos_name, new_dentry, is_hid); in msdos_rename()
|
/kernel/linux/linux-5.10/security/tomoyo/ |
D | tomoyo.c | 253 struct dentry *new_dentry) in tomoyo_path_link() argument 256 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link() 274 struct dentry *new_dentry) in tomoyo_path_rename() argument 277 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename()
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
D | namei.c | 1199 struct dentry *new_dentry, in ocfs2_rename() argument 1205 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename() 1231 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename() 1233 new_dentry->d_name.len, new_dentry->d_name.name); in ocfs2_rename() 1381 status = ocfs2_find_files_on_disk(new_dentry->d_name.name, in ocfs2_rename() 1382 new_dentry->d_name.len, in ocfs2_rename() 1418 trace_ocfs2_rename_target_exists(new_dentry->d_name.len, in ocfs2_rename() 1419 new_dentry->d_name.name); in ocfs2_rename() 1441 status = ocfs2_remote_dentry_delete(new_dentry); in ocfs2_rename() 1465 BUG_ON(d_inode(new_dentry->d_parent) != new_dir); in ocfs2_rename() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | fsnotify.h | 198 struct dentry *new_dentry) in fsnotify_link() argument 201 audit_inode_child(dir, new_dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_link() 203 fsnotify_name(dir, FS_CREATE, inode, &new_dentry->d_name, 0); in fsnotify_link()
|
/kernel/linux/linux-5.10/fs/crypto/ |
D | hooks.c | 73 struct inode *new_dir, struct dentry *new_dentry, in __fscrypt_prepare_rename() argument 88 fscrypt_is_nokey_name(new_dentry)) in __fscrypt_prepare_rename() 100 d_inode(new_dentry))) in __fscrypt_prepare_rename()
|
/kernel/linux/linux-5.10/fs/ext2/ |
D | namei.c | 319 struct inode * new_dir, struct dentry * new_dentry, in ext2_rename() argument 323 struct inode * new_inode = d_inode(new_dentry); in ext2_rename() 362 new_de = ext2_find_entry(new_dir, &new_dentry->d_name, &new_page); in ext2_rename() 373 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
|