| /linux/fs/afs/ |
| H A D | dir.c | 46 struct dentry *new_dentry, unsigned int flags); 1887 struct dentry *new_dentry = op->dentry_2; in afs_rename_edit_dir() local 1915 afs_edit_dir_remove(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir() 1918 afs_edit_dir_add(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir() 1928 new_inode = d_inode(new_dentry); in afs_rename_edit_dir() 1944 d_move(old_dentry, new_dentry); in afs_rename_edit_dir() 1961 struct dentry *new_dentry = op->dentry_2; in afs_rename_exchange_edit_dir() local 1971 afs_edit_dir_update(orig_dvnode, &new_dentry->d_name, in afs_rename_exchange_edit_dir() 1975 d_exchange(old_dentry, new_dentry); in afs_rename_exchange_edit_dir() 1989 afs_edit_dir_update(new_dvnode, &new_dentry->d_name, in afs_rename_exchange_edit_dir() [all …]
|
| /linux/fs/nfs/ |
| H A D | unlink.c | 273 new_dir, data->new_dentry, task->tk_status); in nfs_async_rename_done() 309 dput(data->new_dentry); in nfs_async_rename_release() 341 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument 376 data->new_dentry = dget(new_dentry); in nfs_async_rename() 385 data->args.new_name = &new_dentry->d_name; in nfs_async_rename() 393 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry, in nfs_async_rename()
|
| H A D | nfstrace.h | 828 const struct dentry *new_dentry 831 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry), 838 __string(new_name, new_dentry->d_name.name) 865 const struct dentry *new_dentry \ 867 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry)) 874 const struct dentry *new_dentry, 878 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error), 886 __string(new_name, new_dentry->d_name.name) 916 const struct dentry *new_dentry, \ 920 new_dentry, error))
|
| /linux/fs/hfs/ |
| H A D | dir.c | 292 struct dentry *new_dentry, unsigned int flags) in hfs_rename() argument 300 if (d_really_is_positive(new_dentry)) { in hfs_rename() 301 res = hfs_remove(new_dir, new_dentry); in hfs_rename() 308 new_dir, &new_dentry->d_name); in hfs_rename() 312 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
|
| /linux/fs/orangefs/ |
| H A D | namei.c | 372 struct dentry *new_dentry, in orangefs_rename() argument 384 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename() 399 strscpy(new_op->upcall.req.rename.d_new_name, new_dentry->d_name.name); in orangefs_rename() 409 if (new_dentry->d_inode) in orangefs_rename() 410 inode_set_ctime_current(d_inode(new_dentry)); in orangefs_rename()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | verifier_vfs_accept.c | 89 struct inode *new_dir, struct dentry *new_dentry, in BPF_PROG() argument 92 struct inode *inode = new_dentry->d_inode; in BPF_PROG()
|
| H A D | verifier_vfs_reject.c | 165 struct inode *new_dir, struct dentry *new_dentry, in BPF_PROG() argument 168 struct inode *inode = new_dentry->d_inode; in BPF_PROG()
|
| H A D | local_storage.c | 103 struct inode *new_dir, struct dentry *new_dentry, in BPF_PROG() 109 /* new_dentry->d_inode can be NULL when the inode is renamed to a file in BPF_PROG() argument 113 bpf_inode_storage_get(&inode_storage_map, new_dentry->d_inode, 0, in BPF_PROG()
|
| /linux/fs/minix/ |
| H A D | namei.c | 192 struct inode *new_dir, struct dentry *new_dentry, in minix_rename() argument 196 struct inode * new_inode = d_inode(new_dentry); in minix_rename() 237 new_de = minix_find_entry(new_dentry, &new_folio); in minix_rename() 249 err = minix_add_link(new_dentry, old_inode); in minix_rename()
|
| /linux/security/tomoyo/ |
| H A D | tomoyo.c | 265 struct dentry *new_dentry) in tomoyo_path_link() argument 268 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link() 287 struct dentry *new_dentry, in tomoyo_path_rename() argument 291 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename()
|
| /linux/fs/ |
| H A D | namei.c | 3912 rd->new_dentry = d2; in __start_renaming() 4008 rd->new_dentry = d2; in __start_renaming_dentry() 4073 struct dentry *old_dentry, struct dentry *new_dentry) in start_renaming_two_dentries() argument 4087 if (d_unhashed(new_dentry) || in start_renaming_two_dentries() 4088 rd->new_parent != new_dentry->d_parent) in start_renaming_two_dentries() 4096 if (new_dentry == trap) { in start_renaming_two_dentries() 4106 if (d_is_positive(new_dentry) && (rd->flags & RENAME_NOREPLACE)) in start_renaming_two_dentries() 4110 rd->new_dentry = dget(new_dentry); in start_renaming_two_dentries() 4124 dput(rd->new_dentry); in end_renaming() 5725 struct inode *dir, struct dentry *new_dentry, in vfs_link() argument [all …]
|
| /linux/security/landlock/ |
| H A D | fs.c | 1080 * @new_dentry: Destination file or directory. 1129 struct dentry *const new_dentry, in current_check_refer_path() 1148 if (unlikely(d_is_negative(new_dentry))) in current_check_refer_path() 1151 get_mode_access(d_backing_inode(new_dentry)->i_mode); in current_check_refer_path() 1159 access_request_parent2 |= maybe_remove(new_dentry); in current_check_refer_path() 1198 /* new_dir->dentry is equal to new_dentry->d_parent */ in current_check_refer_path() 1219 exchange ? new_dentry : NULL)) in current_check_refer_path() 1509 struct dentry *const new_dentry) in hook_path_link() 1511 return current_check_refer_path(old_dentry, new_dir, new_dentry, false, in hook_path_link() 1518 struct dentry *const new_dentry, in hook_path_rename() 1130 current_check_refer_path(struct dentry * const old_dentry,const struct path * const new_dir,struct dentry * const new_dentry,const bool removable,const bool exchange) current_check_refer_path() argument 1510 hook_path_link(struct dentry * const old_dentry,const struct path * const new_dir,struct dentry * const new_dentry) hook_path_link() argument 1519 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/include/linux/ |
| H A D | fsnotify.h | 334 struct dentry *new_dentry) in fsnotify_link() argument 337 audit_inode_child(dir, new_dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_link() 340 dir, &new_dentry->d_name, 0); in fsnotify_link()
|
| /linux/fs/9p/ |
| H A D | vfs_inode.c | 858 struct dentry *new_dentry, unsigned int flags) in v9fs_vfs_rename() argument 874 new_inode = d_inode(new_dentry); in v9fs_vfs_rename() 890 dfid = v9fs_parent_fid(new_dentry); in v9fs_vfs_rename() 903 newdirfid, new_dentry->d_name.name); in v9fs_vfs_rename() 906 new_dentry->d_name.name); in v9fs_vfs_rename() 910 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename() 921 wstat.name = new_dentry->d_name.name; in v9fs_vfs_rename() 942 d_move(old_dentry, new_dentry); in v9fs_vfs_rename()
|
| H A D | v9fs.h | 185 struct inode *new_dir, struct dentry *new_dentry,
|
| /linux/fs/ocfs2/ |
| H A D | namei.h | 36 struct dentry *new_dentry);
|
| /linux/security/ |
| H A D | security.c | 1516 struct dentry *new_dentry) in security_path_link() argument 1520 return call_int_hook(path_link, old_dentry, new_dir, new_dentry); in security_path_link() 1536 const struct path *new_dir, struct dentry *new_dentry, in security_path_rename() argument 1540 (d_is_positive(new_dentry) && in security_path_rename() 1541 IS_PRIVATE(d_backing_inode(new_dentry))))) in security_path_rename() 1545 new_dentry, flags); in security_path_rename() 1660 struct dentry *new_dentry) in security_inode_link() argument 1664 return call_int_hook(inode_link, old_dentry, dir, new_dentry); in security_inode_link() 1771 struct inode *new_dir, struct dentry *new_dentry, in security_inode_rename() argument 1775 (d_is_positive(new_dentry) && in security_inode_rename() [all …]
|
| /linux/fs/overlayfs/ |
| H A D | overlayfs.h | 231 struct inode *dir, struct dentry *new_dentry) in ovl_do_link() argument 234 new_dentry, NULL); in ovl_do_link() 236 pr_debug("link(%pd2, %pd2) = %i\n", old_dentry, new_dentry, err); in ovl_do_link() 368 pr_debug("rename(%pd2, %pd2, 0x%x)\n", rd->old_dentry, rd->new_dentry, in ovl_do_rename_rd() 373 rd->old_dentry, rd->new_dentry, err); in ovl_do_rename_rd() 387 .new_dentry = newdentry, in ovl_do_rename()
|
| /linux/fs/hpfs/ |
| H A D | namei.c | 505 struct dentry *new_dentry, unsigned int flags) in hpfs_rename() argument 509 const unsigned char *new_name = new_dentry->d_name.name; in hpfs_rename() 510 unsigned new_len = new_dentry->d_name.len; in hpfs_rename() 512 struct inode *new_inode = d_inode(new_dentry); in hpfs_rename()
|
| /linux/drivers/android/ |
| H A D | binderfs.c | 349 struct inode *new_dir, struct dentry *new_dentry, in binderfs_rename() argument 353 is_binderfs_control_device(new_dentry)) in binderfs_rename() 357 new_dentry, flags); in binderfs_rename()
|
| /linux/drivers/android/binder/ |
| H A D | rust_binderfs.c | 340 struct inode *new_dir, struct dentry *new_dentry, in binderfs_rename() argument 344 is_binderfs_control_device(new_dentry)) in binderfs_rename() 348 new_dentry, flags); in binderfs_rename()
|
| /linux/security/apparmor/include/ |
| H A D | file.h | 97 struct dentry *new_dentry);
|
| /linux/fs/ceph/ |
| H A D | dir.c | 1473 struct dentry *new_dentry, unsigned int flags) in ceph_rename() argument 1497 err = ceph_wait_on_conflict_unlink(new_dentry); in ceph_rename() 1501 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ceph_rename() 1508 new_dentry); in ceph_rename() 1513 req->r_dentry = dget(new_dentry); in ceph_rename() 1526 if (d_really_is_positive(new_dentry)) { in ceph_rename() 1528 ceph_drop_caps_for_unlink(d_inode(new_dentry)); in ceph_rename() 1537 d_move(old_dentry, new_dentry); in ceph_rename()
|
| /linux/fs/vboxsf/ |
| H A D | dir.c | 389 struct dentry *new_dentry, in vboxsf_dir_rename() argument 406 new_path = vboxsf_path_from_dentry(sbi, new_dentry); in vboxsf_dir_rename()
|
| /linux/security/apparmor/ |
| H A D | lsm.c | 366 struct dentry *new_dentry) in apparmor_path_link() argument 377 new_dentry); in apparmor_path_link() 384 const struct path *new_dir, struct dentry *new_dentry, in apparmor_path_rename() argument 392 if ((flags & RENAME_EXCHANGE) && !path_mediated_fs(new_dentry)) in apparmor_path_rename() 402 .dentry = new_dentry }; in apparmor_path_rename() 411 .mode = d_backing_inode(new_dentry)->i_mode, in apparmor_path_rename() 413 vfsuid = i_uid_into_vfsuid(idmap, d_backing_inode(new_dentry)); in apparmor_path_rename()
|