| /linux/fs/ntfs3/ |
| H A D | namei.c | 266 struct dentry *dentry, struct inode *new_dir, in ntfs_rename() argument 273 struct ntfs_inode *new_dir_ni = ntfs_i(new_dir); in ntfs_rename() 309 if (is_same && dir == new_dir) { in ntfs_rename() 323 err = ntfs_unlink_inode(new_dir, new_dentry); in ntfs_rename() 357 simple_rename_timestamp(dir, dentry, new_dir, new_dentry); in ntfs_rename() 360 if (dir != new_dir) in ntfs_rename() 361 mark_inode_dirty(new_dir); in ntfs_rename() 366 if (IS_DIRSYNC(new_dir)) in ntfs_rename() 367 ntfs_sync_inode(new_dir); in ntfs_rename()
|
| /linux/security/landlock/ |
| H A D | fs.c | 1180 * @new_dir: Destination parent directory. in current_check_refer_path() 1226 * access rights from @new_dir, or -EACCES if file removal or creation is in current_check_refer_path() 1230 const struct path *const new_dir, in current_check_refer_path() 1272 if (old_dentry->d_parent == new_dir->dentry) { in hook_sb_delete() 1281 if (is_access_to_paths_allowed(subject->domain, new_dir, in hook_sb_delete() 1295 mnt_dir.mnt = new_dir->mnt; in hook_sb_delete() 1296 mnt_dir.dentry = new_dir->mnt->mnt_root; in hook_sb_delete() 1307 /* new_dir->dentry is equal to new_dentry->d_parent */ in hook_sb_delete() 1312 new_dir->dentry, in hook_sb_delete() 1335 request2.audit.u.path.dentry = new_dir in hook_sb_delete() 1129 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 1509 hook_path_link(struct dentry * const old_dentry,const struct path * const new_dir,struct dentry * const new_dentry) hook_path_link() argument 1518 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 | fscrypt.h | 456 struct inode *new_dir, struct dentry *new_dentry, 755 struct inode *new_dir, in __fscrypt_prepare_rename() argument 941 struct inode *new_dir, in fscrypt_prepare_rename() argument 945 if (IS_ENCRYPTED(old_dir) || IS_ENCRYPTED(new_dir)) in fscrypt_prepare_rename() 947 new_dir, new_dentry, flags); in fscrypt_prepare_rename()
|
| H A D | nfs_xdr.h | 757 const struct nfs_fh *new_dir; member 1766 struct inode *new_dir; member 1820 int (*rename_done) (struct rpc_task *task, struct inode *old_dir, struct inode *new_dir);
|
| H A D | fs.h | 3277 struct inode *new_dir, struct dentry *new_dentry); 3279 struct inode *new_dir, struct dentry *new_dentry); 3331 struct inode *new_dir, struct dentry *new_dentry); 3334 struct inode *new_dir,
|
| /linux/fs/nfs/ |
| H A D | nfstrace.h | 828 const struct inode *new_dir, 832 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry), 837 __field(u64, new_dir) 845 __entry->new_dir = new_dir->i_ino; 856 (unsigned long long)__entry->new_dir, 865 const struct inode *new_dir, \ 868 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry)) 874 const struct inode *new_dir, 879 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error), 886 __field(u64, new_dir) [all …]
|
| H A D | dir.c | 2775 struct dentry *old_dentry, struct inode *new_dir, in nfs_rename() argument 2793 trace_nfs_rename_enter(old_dir, old_dentry, new_dir, new_dentry); in nfs_rename() 2824 err = nfs_sillyrename(new_dir, new_dentry); in nfs_rename() 2842 task = nfs_async_rename(old_dir, new_dir, old_dentry, new_dentry, in nfs_rename() 2870 new_dir, new_dentry, error); in nfs_rename() 2882 nfs_save_change_attribute(new_dir)); in nfs_rename()
|
| H A D | nfs2xdr.c | 717 encode_diropargs(xdr, args->new_dir, new->name, new->len); in nfs2_xdr_enc_renameargs()
|
| /linux/fs/ocfs2/ |
| H A D | dcache.h | 38 struct inode *old_dir, struct inode *new_dir);
|
| /linux/security/tomoyo/ |
| H A D | tomoyo.c | 264 static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir, in tomoyo_path_link() argument 267 struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry }; in tomoyo_path_link() 268 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link()
|
| /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
|
| H A D | verifier_vfs_reject.c | 165 struct inode *new_dir, struct dentry *new_dentry, in BPF_PROG() argument
|
| H A D | local_storage.c | 103 struct inode *new_dir, struct dentry *new_dentry, in BPF_PROG() 109 BPF_PROG(inode_rename,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) BPF_PROG() argument
|
| /linux/security/apparmor/include/ |
| H A D | file.h | 96 struct dentry *old_dentry, const struct path *new_dir,
|
| /linux/fs/ceph/ |
| H A D | dir.c | 1476 struct dentry *old_dentry, struct inode *new_dir, in ceph_rename() argument 1488 if (ceph_snap(old_dir) != ceph_snap(new_dir)) in ceph_rename() 1491 if (old_dir == new_dir && ceph_snap(old_dir) == CEPH_SNAPDIR) in ceph_rename() 1497 if ((old_dir != new_dir) && in ceph_rename() 1498 (!ceph_quota_is_same_realm(old_dir, new_dir))) in ceph_rename() 1505 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ceph_rename() 1511 ceph_vinop(old_dir), old_dentry, ceph_vinop(new_dir), in ceph_rename() 1521 req->r_parent = new_dir; in ceph_rename() 1522 ihold(new_dir); in ceph_rename()
|
| /linux/security/apparmor/ |
| H A D | file.c | 439 const struct path *new_dir, struct dentry *new_dentry) in aa_path_link() argument 441 struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry }; in aa_path_link() 442 struct path target = { .mnt = new_dir->mnt, .dentry = old_dentry }; in aa_path_link()
|
| H A D | lsm.c | 366 static int apparmor_path_link(struct dentry *old_dentry, const struct path *new_dir, in apparmor_path_link() argument 378 error = aa_path_link(current_cred(), label, old_dentry, new_dir, in apparmor_path_link() 386 const struct path *new_dir, struct dentry *new_dentry, in apparmor_path_rename() argument 404 struct path new_path = { .mnt = new_dir->mnt, in apparmor_path_rename()
|
| /linux/fs/btrfs/ |
| H A D | inode.c | 8275 struct inode *new_dir, in btrfs_rename_exchange() argument 8282 struct btrfs_root *dest = BTRFS_I(new_dir)->root; in btrfs_rename_exchange() 8312 ret = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_fname); in btrfs_rename_exchange() 8336 trans_num_items = (old_dir == new_dir ? 9 : 10); in btrfs_rename_exchange() 8373 ret = btrfs_set_inode_index(BTRFS_I(new_dir), &old_idx); in btrfs_rename_exchange() 8389 btrfs_ino(BTRFS_I(new_dir)), in btrfs_rename_exchange() 8413 inode_inc_iversion(new_dir); in btrfs_rename_exchange() 8416 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in btrfs_rename_exchange() 8446 btrfs_record_unlink_dir(trans, BTRFS_I(new_dir), in btrfs_rename_exchange() 8474 ret = btrfs_unlink_subvol(trans, BTRFS_I(new_dir), new_dentry); in btrfs_rename_exchange() [all …]
|
| /linux/fs/ |
| H A D | namei.c | 6079 struct inode *new_dir = d_inode(rd->new_parent); in vfs_rename() local 6088 unsigned max_links = new_dir->i_sb->s_max_links; in vfs_rename() 6100 error = may_create_dentry(rd->mnt_idmap, new_dir, new_dentry); in vfs_rename() 6105 error = may_delete_dentry(rd->mnt_idmap, new_dir, in vfs_rename() 6108 error = may_delete_dentry(rd->mnt_idmap, new_dir, in vfs_rename() 6121 if (new_dir != old_dir) { in vfs_rename() 6136 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry, in vfs_rename() 6156 lock_old_subdir = new_dir != old_dir; in vfs_rename() 6157 lock_new_subdir = new_dir != old_dir || !(flags & RENAME_EXCHANGE); in vfs_rename() 6179 if (max_links && new_dir != old_dir) { in vfs_rename() [all …]
|
| /linux/fs/ext4/ |
| H A D | namei.c | 3800 struct dentry *old_dentry, struct inode *new_dir, in ext4_rename() argument 3810 .dir = new_dir, in ext4_rename() 3826 if ((ext4_test_inode_flag(new_dir, EXT4_INODE_PROJINHERIT)) && in ext4_rename() 3827 (!projid_eq(EXT4_I(new_dir)->i_projid, in ext4_rename() 4054 struct inode *new_dir, struct dentry *new_dentry) in ext4_cross_rename() argument 4063 .dir = new_dir, in ext4_cross_rename() 4070 if ((ext4_test_inode_flag(new_dir, EXT4_INODE_PROJINHERIT) && in ext4_cross_rename() 4071 !projid_eq(EXT4_I(new_dir)->i_projid, in ext4_cross_rename() 4196 struct inode *new_dir, struct dentry *new_dentry, in ext4_rename2() argument 4208 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ext4_rename2() [all …]
|
| /linux/security/ |
| H A D | security.c | 1508 * @new_dir: new parent directory 1515 int security_path_link(struct dentry *old_dentry, const struct path *new_dir, in security_path_link() argument 1520 return call_int_hook(path_link, old_dentry, new_dir, new_dentry); in security_path_link() 1527 * @new_dir: parent directory of the new file 1536 const struct path *new_dir, struct dentry *new_dentry, in security_path_rename() argument 1544 return call_int_hook(path_rename, old_dir, old_dentry, new_dir, in security_path_rename() 1762 * @new_dir: parent directory of the new file 1771 struct inode *new_dir, struct dentry *new_dentry, in security_inode_rename() argument 1780 int err = call_int_hook(inode_rename, new_dir, new_dentry, in security_inode_rename() 1787 new_dir, new_dentr in security_inode_rename() [all...] |
| /linux/drivers/android/ |
| H A D | binderfs.c | 349 struct inode *new_dir, struct dentry *new_dentry, in binderfs_rename() argument 356 return simple_rename(idmap, old_dir, old_dentry, new_dir, in binderfs_rename()
|
| /linux/Documentation/translations/zh_CN/filesystems/ |
| H A D | debugfs.rst | 191 struct dentry *new_dir,
|
| /linux/Documentation/translations/zh_TW/filesystems/ |
| H A D | debugfs.rst | 192 struct dentry *new_dir,
|
| /linux/fs/afs/ |
| H A D | dir.c | 47 struct dentry *old_dentry, struct inode *new_dir, 2071 struct dentry *old_dentry, struct inode *new_dir, in afs_rename() argument 2087 new_dvnode = AFS_FS_I(new_dir); in afs_rename()
|