Searched refs:old_dentry (Results 1 - 25 of 79) sorted by relevance

1234

/linux-master/fs/nfs/
H A Dunlink.c268 struct dentry *old_dentry = data->old_dentry; local
270 trace_nfs_async_rename_done(old_dir, old_dentry,
290 if (d_really_is_positive(data->old_dentry))
291 nfs_mark_for_revalidate(d_inode(data->old_dentry));
306 dput(data->old_dentry);
331 * @old_dentry: original dentry to be renamed
332 * @new_dentry: dentry to which the old_dentry should be renamed
339 struct dentry *old_dentry, struct dentry *new_dentry,
373 data->old_dentry
338 nfs_async_rename(struct inode *old_dir, struct inode *new_dir, struct dentry *old_dentry, struct dentry *new_dentry, void (*complete)(struct rpc_task *, struct nfs_renamedata *)) argument
[all...]
/linux-master/fs/sysv/
H A Dnamei.c101 static int sysv_link(struct dentry * old_dentry, struct inode * dir, argument
104 struct inode *inode = d_inode(old_dentry);
192 struct dentry *old_dentry, struct inode *new_dir,
195 struct inode * old_inode = d_inode(old_dentry);
206 old_de = sysv_find_entry(old_dentry, &old_page);
191 sysv_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/fs/minix/
H A Dnamei.c96 static int minix_link(struct dentry * old_dentry, struct inode * dir, argument
99 struct inode *inode = d_inode(old_dentry);
177 struct inode *old_dir, struct dentry *old_dentry,
181 struct inode * old_inode = d_inode(old_dentry);
192 old_de = minix_find_entry(old_dentry, &old_page);
176 minix_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/fs/affs/
H A Dnamei.c394 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) argument
396 struct inode *inode = d_inode(old_dentry);
405 affs_rename(struct inode *old_dir, struct dentry *old_dentry, argument
414 affs_nofilenametruncate(old_dentry));
426 bh = affs_bread(sb, d_inode(old_dentry)->i_ino);
452 affs_xrename(struct inode *old_dir, struct dentry *old_dentry, argument
461 bh_old = affs_bread(sb, d_inode(old_dentry)->i_ino);
493 affs_copy_name(AFFS_TAIL(sb, bh_new)->name, old_dentry);
507 struct dentry *old_dentry, struct inode *new_dir,
515 old_dir->i_ino, old_dentry, new_di
506 affs_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dlocal_storage.c108 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, argument
122 storage = bpf_inode_storage_get(&inode_storage_map, old_dentry->d_inode,
130 err = bpf_inode_storage_delete(&inode_storage_map, old_dentry->d_inode);
/linux-master/fs/debugfs/
H A Dinode.c858 * @old_dentry: dentry of an object to be renamed.
866 * This function will return a pointer to old_dentry (which is updated to
873 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, argument
884 if (IS_ERR_OR_NULL(old_dentry))
885 return old_dentry;
892 if (d_really_is_negative(old_dentry) || old_dentry == trap ||
893 d_mountpoint(old_dentry))
900 take_dentry_name_snapshot(&old_name, old_dentry);
902 error = simple_rename(&nop_mnt_idmap, d_inode(old_dir), old_dentry,
911 NULL, old_dentry); local
[all...]
/linux-master/fs/jffs2/
H A Ddir.c248 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) argument
250 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb);
251 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry));
261 if (d_is_dir(old_dentry))
265 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12;
273 set_nlink(d_inode(old_dentry), ++f->inocache->pino_nlink);
275 d_instantiate(dentry, d_inode(old_dentry));
278 ihold(d_inode(old_dentry));
773 struct inode *old_dir_i, struct dentry *old_dentry,
815 type = (d_inode(old_dentry)
772 jffs2_rename(struct mnt_idmap *idmap, struct inode *old_dir_i, struct dentry *old_dentry, struct inode *new_dir_i, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/ufs/
H A Dnamei.c150 static int ufs_link (struct dentry * old_dentry, struct inode * dir, argument
153 struct inode *inode = d_inode(old_dentry);
247 struct dentry *old_dentry, struct inode *new_dir,
250 struct inode *old_inode = d_inode(old_dentry);
261 old_de = ufs_find_entry(old_dir, &old_dentry->d_name, &old_page);
246 ufs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/fs/f2fs/
H A Dnamei.c396 static int f2fs_link(struct dentry *old_dentry, struct inode *dir, argument
399 struct inode *inode = d_inode(old_dentry);
408 err = fscrypt_prepare_link(old_dentry, dir, dentry);
414 F2FS_I(old_dentry->d_inode)->i_projid)))
954 struct dentry *old_dentry, struct inode *new_dir,
958 struct inode *old_inode = d_inode(old_dentry);
976 F2FS_I(old_dentry->d_inode)->i_projid)))
996 err = f2fs_setup_filename(old_dir, &old_dentry->d_name,
1021 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_page);
1105 err = f2fs_add_link(old_dentry, whiteou
953 f2fs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
1149 f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
1314 f2fs_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/
H A Dbad_inode.c43 static int bad_inode_link (struct dentry *old_dentry, struct inode *dir, argument
79 struct inode *old_dir, struct dentry *old_dentry,
78 bad_inode_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
H A Dlibfs.c351 * @old_dentry: dentry being moved
359 struct dentry *old_dentry,
365 long old_index = dentry2offset(old_dentry);
369 simple_offset_remove(old_ctx, old_dentry);
372 ret = simple_offset_add(new_ctx, old_dentry);
378 simple_offset_remove(new_ctx, old_dentry);
382 ret = simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry);
384 simple_offset_remove(new_ctx, old_dentry);
391 offset_set(old_dentry, old_index);
392 mtree_store(&old_ctx->mt, old_index, old_dentry, GFP_KERNE
358 simple_offset_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
681 simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) argument
751 simple_rename_timestamp(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
766 simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
786 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) argument
[all...]
/linux-master/fs/hfs/
H A Ddir.c284 struct dentry *old_dentry, struct inode *new_dir,
299 res = hfs_cat_move(d_inode(old_dentry)->i_ino,
300 old_dir, &old_dentry->d_name,
304 (btree_key *)&HFS_I(d_inode(old_dentry))->cat_key,
283 hfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/security/tomoyo/
H A Dtomoyo.c258 * @old_dentry: Pointer to "struct dentry".
264 static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir, argument
267 struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry };
277 * @old_dentry: Pointer to "struct dentry".
285 struct dentry *old_dentry,
290 struct path path1 = { .mnt = old_parent->mnt, .dentry = old_dentry };
284 tomoyo_path_rename(const struct path *old_parent, struct dentry *old_dentry, const struct path *new_parent, struct dentry *new_dentry, const unsigned int flags) argument
/linux-master/fs/btrfs/
H A Dtree-log.h98 struct dentry *old_dentry, struct btrfs_inode *old_dir,
/linux-master/fs/crypto/
H A Dhooks.c69 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, argument
73 if (fscrypt_is_nokey_name(old_dentry) ||
84 d_inode(old_dentry)))
/linux-master/fs/ext2/
H A Dnamei.c204 static int ext2_link (struct dentry * old_dentry, struct inode * dir, argument
207 struct inode *inode = d_inode(old_dentry);
318 struct inode * old_dir, struct dentry * old_dentry,
322 struct inode * old_inode = d_inode(old_dentry);
342 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_folio);
317 ext2_rename(struct mnt_idmap * idmap, struct inode * old_dir, struct dentry * old_dentry, struct inode * new_dir, struct dentry * new_dentry, unsigned int flags) argument
/linux-master/security/landlock/
H A Dfs.c894 * @old_dentry: File or directory requested to be moved or linked.
941 * - -EXDEV if @old_dentry would inherit new access rights from @new_dir;
944 static int current_check_refer_path(struct dentry *const old_dentry, argument
960 if (unlikely(d_is_negative(old_dentry)))
971 get_mode_access(d_backing_inode(old_dentry)->i_mode);
973 access_request_parent1 |= maybe_remove(old_dentry);
978 if (old_dentry->d_parent == new_dir->dentry) {
1002 old_dentry->d_parent,
1012 * take into account the @old_dentry access rights aggregated with its
1018 old_dentry, access_request_parent
1232 hook_path_link(struct dentry *const old_dentry, const struct path *const new_dir, struct dentry *const new_dentry) argument
1240 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) argument
[all...]
/linux-master/fs/9p/
H A Dvfs_inode.c799 * @old_dentry: old dentry
808 struct dentry *old_dentry, struct inode *new_dir,
824 old_inode = d_inode(old_dentry);
827 oldfid = v9fs_fid_lookup(old_dentry);
831 dfid = v9fs_parent_fid(old_dentry);
853 retval = p9_client_renameat(olddirfid, old_dentry->d_name.name,
861 if (old_dentry->d_parent != new_dentry->d_parent) {
893 d_move(old_dentry, new_dentry);
1211 * @old_dentry: dentry for file to link to
1218 v9fs_vfs_link(struct dentry *old_dentry, struc argument
807 v9fs_vfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/ubifs/
H A Ddir.c720 static int ubifs_link(struct dentry *old_dentry, struct inode *dir, argument
724 struct inode *inode = d_inode(old_dentry);
743 err = fscrypt_prepare_link(old_dentry, dir, dentry);
1294 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, argument
1299 struct inode *old_inode = d_inode(old_dentry);
1326 old_dentry, old_inode->i_ino, old_dir->i_ino,
1345 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm);
1386 whiteout = create_whiteout(old_dir, old_dentry);
1417 /* Add the old_dentry size to the old_dir size. */
1427 simple_rename_timestamp(old_dir, old_dentry, new_di
1557 ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
1621 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) argument
[all...]
/linux-master/fs/fat/
H A Dnamei_msdos.c429 struct dentry *old_dentry,
442 old_inode = d_inode(old_dentry);
598 struct inode *old_dir, struct dentry *old_dentry,
611 err = msdos_format_name(old_dentry->d_name.name,
612 old_dentry->d_name.len, old_msdos_name,
625 err = do_msdos_rename(old_dir, old_msdos_name, old_dentry,
428 do_msdos_rename(struct inode *old_dir, unsigned char *old_name, struct dentry *old_dentry, struct inode *new_dir, unsigned char *new_name, struct dentry *new_dentry, int is_hid) argument
597 msdos_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/include/linux/
H A Dfscrypt.h426 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry,
748 struct dentry *old_dentry,
942 * @old_dentry: an existing dentry for the inode being linked
957 static inline int fscrypt_prepare_link(struct dentry *old_dentry, argument
962 return __fscrypt_prepare_link(d_inode(old_dentry), dir, dentry);
970 * @old_dentry: dentry for source file
989 struct dentry *old_dentry,
995 return __fscrypt_prepare_rename(old_dir, old_dentry,
747 __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
988 fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/fs/orangefs/
H A Dnamei.c380 struct dentry *old_dentry,
394 old_dentry, new_dentry, d_count(new_dentry));
409 old_dentry->d_name.name,
417 get_interruptible_flag(old_dentry->d_inode));
378 orangefs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/security/apparmor/include/
H A Dfile.h91 struct dentry *old_dentry, const struct path *new_dir,
/linux-master/fs/ecryptfs/
H A Dinode.c432 static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir, argument
441 file_size_save = i_size_read(d_inode(old_dentry));
442 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry);
454 set_nlink(d_inode(old_dentry),
455 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink);
586 struct dentry *old_dentry, struct inode *new_dir,
601 lower_old_dir_dentry = ecryptfs_dentry_to_lower(old_dentry->d_parent);
604 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry);
631 rd.old_dentry = lower_old_dentry;
585 ecryptfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/fs/ocfs2/
H A Dnamei.c679 static int ocfs2_link(struct dentry *old_dentry, argument
684 struct inode *inode = d_inode(old_dentry);
685 struct inode *old_dir = d_inode(old_dentry->d_parent);
697 old_dentry->d_name.len, old_dentry->d_name.name,
735 err = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name,
736 old_dentry->d_name.len, &old_de_ino);
1200 struct dentry *old_dentry,
1207 struct inode *old_inode = d_inode(old_dentry);
1234 trace_ocfs2_rename(old_dir, old_dentry, new_di
1198 ocfs2_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]

Completed in 350 milliseconds

1234