| /linux/fs/afs/ |
| H A D | dir.c | 46 struct dentry *new_dentry, unsigned int flags); 1883 struct dentry *new_dentry = op->dentry_2; in afs_rename_edit_dir() local 1911 afs_edit_dir_remove(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir() 1914 afs_edit_dir_add(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir() 1924 new_inode = d_inode(new_dentry); in afs_rename_edit_dir() 1940 d_move(old_dentry, new_dentry); in afs_rename_edit_dir() 1957 struct dentry *new_dentry = op->dentry_2; in afs_rename_exchange_edit_dir() local 1967 afs_edit_dir_update(orig_dvnode, &new_dentry->d_name, in afs_rename_exchange_edit_dir() 1971 d_exchange(old_dentry, new_dentry); in afs_rename_exchange_edit_dir() 1985 afs_edit_dir_update(new_dvnode, &new_dentry in afs_rename_exchange_edit_dir() 2058 afs_rename(struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) afs_rename() argument [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 | dir.c | 2715 struct dentry *new_dentry = data->new_dentry; in nfs_unblock_rename() local 2717 unblock_revalidate(new_dentry); in nfs_unblock_rename() 2721 struct dentry *new_dentry) in nfs_rename_is_unsafe_cross_dir() argument 2725 if (old_dentry->d_parent != new_dentry->d_parent) in nfs_rename_is_unsafe_cross_dir() 2758 struct dentry *new_dentry, unsigned int flags) in nfs_rename() argument 2761 struct inode *new_inode = d_inode(new_dentry); in nfs_rename() 2772 old_dentry, new_dentry, in nfs_rename() 2773 d_count(new_dentry)); in nfs_rename() 2775 trace_nfs_rename_enter(old_dir, old_dentry, new_dir, new_dentry); in nfs_rename() [all...] |
| /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/ |
| H A D | libfs.c | 342 * @new_dentry: dentry of destination 349 * Caller must have grabbed a slot for new_dentry in the maple_tree 353 struct inode *new_dir, struct dentry *new_dentry) in simple_offset_rename() 357 long new_offset = dentry2offset(new_dentry); in simple_offset_rename() 363 offset_set(new_dentry, 0); in simple_offset_rename() 372 * @new_dentry: destination dentry 383 struct dentry *new_dentry) in simple_offset_rename_exchange() 388 long new_index = dentry2offset(new_dentry); in simple_offset_rename_exchange() 398 ret = mtree_store(&old_ctx->mt, old_index, new_dentry, GFP_KERNEL); in simple_offset_rename_exchange() 400 mtree_store(&new_ctx->mt, new_index, new_dentry, GFP_KERNE in simple_offset_rename_exchange() 354 simple_offset_rename(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry) simple_offset_rename() argument 384 simple_offset_rename_exchange(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry) simple_offset_rename_exchange() argument 837 simple_rename_timestamp(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry) simple_rename_timestamp() argument 852 simple_rename_exchange(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry) simple_rename_exchange() argument 873 simple_rename(struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) simple_rename() argument [all...] |
| H A D | namei.c | 3858 * @rd.new_dentry and an extra ref is taken on @rd.old_parent. in __start_renaming() 3912 rd->new_dentry = d2; 3938 * @rd.new_dentry. Also the refcount on @rd->old_parent is increased. 4008 rd->new_dentry = d2; 4031 * On success the found dentry is stored in @rd.new_dentry and 4059 * @new_dentry: dentry to move to in start_renaming_two_dentries() 4064 * @rd.new_dentry and @rd.old_parent and @rd.new_parent are confirmed to in start_renaming_two_dentries() 4073 struct dentry *old_dentry, struct dentry *new_dentry) in start_renaming_two_dentries() 4087 if (d_unhashed(new_dentry) || in start_renaming_two_dentries() 4088 rd->new_parent != new_dentry in start_renaming_two_dentries() 4051 start_renaming_two_dentries(struct renamedata * rd,struct dentry * old_dentry,struct dentry * new_dentry) start_renaming_two_dentries() argument 5703 vfs_link(struct dentry * old_dentry,struct mnt_idmap * idmap,struct inode * dir,struct dentry * new_dentry,struct delegated_inode * delegated_inode) vfs_link() argument 5780 struct dentry *new_dentry; filename_linkat() local 5908 struct dentry *new_dentry = rd->new_dentry; vfs_rename() local [all...] |
| /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/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/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/coda/ |
| H A D | dir.c | 300 struct dentry *new_dentry, unsigned int flags) in coda_rename() argument 303 const char *new_name = new_dentry->d_name.name; in coda_rename() 305 int new_length = new_dentry->d_name.len; in coda_rename() 315 if (d_really_is_positive(new_dentry)) { in coda_rename() 316 if (d_is_dir(new_dentry)) { in coda_rename() 320 coda_flag_inode(d_inode(new_dentry), C_VATTR); in coda_rename()
|
| /linux/fs/hfsplus/ |
| H A D | dir.c | 584 struct inode *new_dir, struct dentry *new_dentry, in hfsplus_rename() 593 if (d_really_is_positive(new_dentry)) { in hfsplus_rename() 594 if (d_is_dir(new_dentry)) in hfsplus_rename() 595 res = hfsplus_rmdir(new_dir, new_dentry); in hfsplus_rename() 597 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename() 604 new_dir, &new_dentry->d_name); in hfsplus_rename() 608 new_dentry->d_fsdata = old_dentry->d_fsdata; 578 hfsplus_rename(struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) hfsplus_rename() argument
|
| /linux/fs/ocfs2/ |
| H A D | namei.c | 1209 struct dentry *new_dentry, in ocfs2_rename() argument 1215 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename() 1241 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename() 1243 new_dentry->d_name.len, new_dentry->d_name.name); in ocfs2_rename() 1390 status = ocfs2_find_files_on_disk(new_dentry->d_name.name, in ocfs2_rename() 1391 new_dentry->d_name.len, in ocfs2_rename() 1427 trace_ocfs2_rename_target_exists(new_dentry->d_name.len, in ocfs2_rename() 1428 new_dentry->d_name.name); in ocfs2_rename() 1450 status = ocfs2_remote_dentry_delete(new_dentry); in ocfs2_rename() [all...] |
| /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/ubifs/ |
| H A D | dir.c | 1322 struct inode *new_dir, struct dentry *new_dentry, in do_rename() argument 1327 struct inode *new_inode = d_inode(new_dentry); in do_rename() 1354 new_dentry, new_dir->i_ino, flags); in do_rename() 1376 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_nm); in do_rename() 1450 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in do_rename() 1582 struct inode *new_dir, struct dentry *new_dentry) in ubifs_xrename() argument 1589 struct inode *snd_inode = d_inode(new_dentry); in ubifs_xrename() 1602 new_dentry, snd_inode->i_ino, new_dir->i_ino); in ubifs_xrename() 1608 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &snd_nm); in ubifs_xrename() 1620 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in ubifs_xrename() 1647 ubifs_rename(struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) ubifs_rename() argument [all...] |
| /linux/fs/bfs/ |
| H A D | dir.c | 211 struct dentry *new_dentry, unsigned int flags) in bfs_rename() 236 new_inode = d_inode(new_dentry); in bfs_rename() 237 new_bh = bfs_find_entry(new_dir, &new_dentry->d_name, &new_de); in bfs_rename() 244 error = bfs_add_entry(new_dir, &new_dentry->d_name, in bfs_rename() 204 bfs_rename(struct mnt_idmap * idmap,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) bfs_rename() argument
|
| /linux/fs/overlayfs/ |
| H A D | dir.c | 1138 struct dentry *new = ovlrd->new_dentry; in ovl_rename_start() 1209 struct dentry *new = ovlrd->new_dentry; in ovl_rename_upper() 1269 if (rd.new_dentry != ovlrd->opaquedir) in ovl_rename_upper() 1272 if (!ovl_matches_upper(new, rd.new_dentry)) in ovl_rename_upper() 1276 if (!d_is_negative(rd.new_dentry)) { in ovl_rename_upper() 1277 if (!new_opaque || !ovl_upper_is_whiteout(ofs, rd.new_dentry)) in ovl_rename_upper() 1285 if (rd.old_dentry->d_inode == rd.new_dentry->d_inode) in ovl_rename_upper() 1300 err = ovl_set_opaque_xerr(new, rd.new_dentry, -EXDEV); in ovl_rename_upper() 1307 whiteout = dget(rd.new_dentry); in ovl_rename_upper() 1343 ovl_nlink_end(ovlrd->new_dentry); in ovl_rename() [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/fs/crypto/ |
| H A D | hooks.c | 92 struct inode *new_dir, struct dentry *new_dentry, in __fscrypt_prepare_rename() argument 96 fscrypt_is_nokey_name(new_dentry)) in __fscrypt_prepare_rename() 112 d_inode(new_dentry))) in __fscrypt_prepare_rename()
|
| /linux/fs/fat/ |
| H A D | namei_vfat.c | 935 struct inode *new_dir, struct dentry *new_dentry) in vfat_rename() argument 948 new_inode = d_inode(new_dentry); in vfat_rename() 971 err = vfat_add_entry(new_dir, &new_dentry->d_name, is_dir, 0, in vfat_rename() 1063 struct inode *new_dir, struct dentry *new_dentry) in vfat_rename_exchange() argument 1074 new_inode = d_inode(new_dentry); in vfat_rename_exchange() 1165 struct dentry *new_dentry, unsigned int flags) in vfat_rename2() argument 1172 new_dir, new_dentry); in vfat_rename2() 1176 return vfat_rename(old_dir, old_dentry, new_dir, new_dentry); in vfat_rename2()
|
| /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 | 850 * @new_dentry: new dentry 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()
|
| /linux/fs/ecryptfs/ |
| H A D | inode.c | 431 struct dentry *new_dentry) in ecryptfs_link() argument 441 lower_new_dentry = ecryptfs_start_creating_dentry(new_dentry); in ecryptfs_link() 449 rc = ecryptfs_interpose(lower_new_dentry, new_dentry, dir->i_sb); in ecryptfs_link() 456 i_size_write(d_inode(new_dentry), file_size_save); in ecryptfs_link() 597 struct dentry *new_dentry, unsigned int flags) in ecryptfs_rename() argument 611 lower_new_dir_dentry = ecryptfs_dentry_to_lower(new_dentry->d_parent); in ecryptfs_rename() 614 lower_new_dentry = ecryptfs_dentry_to_lower(new_dentry); in ecryptfs_rename() 616 target_inode = d_inode(new_dentry); in ecryptfs_rename()
|
| /linux/security/ |
| H A D | security.c | 1509 * @new_dentry: new link 1516 struct dentry *new_dentry) in security_path_rename() 1520 return call_int_hook(path_link, old_dentry, new_dir, new_dentry); in security_path_rename() 1528 * @new_dentry: the new file 1536 const struct path *new_dir, struct dentry *new_dentry, in security_path_truncate() 1540 (d_is_positive(new_dentry) && 1541 IS_PRIVATE(d_backing_inode(new_dentry))))) 1545 new_dentry, flags); 1653 * @new_dentry: new link in security_inode_unlink() 1660 struct dentry *new_dentry) 1491 security_path_link(struct dentry * old_dentry,const struct path * new_dir,struct dentry * new_dentry) security_path_link() argument 1511 security_path_rename(const struct path * old_dir,struct dentry * old_dentry,const struct path * new_dir,struct dentry * new_dentry,unsigned int flags) security_path_rename() argument 1635 security_inode_link(struct dentry * old_dentry,struct inode * dir,struct dentry * new_dentry) security_inode_link() argument 1746 security_inode_rename(struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) security_inode_rename() argument [all...] |