Searched refs:new_dentry (Results 1 - 25 of 74) sorted by relevance

123

/linux-master/fs/ocfs2/
H A Dnamei.h36 struct dentry *new_dentry);
/linux-master/fs/
H A Dinit.c167 struct dentry *new_dentry; local
176 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0);
177 error = PTR_ERR(new_dentry);
178 if (IS_ERR(new_dentry))
188 error = security_path_link(old_path.dentry, &new_path, new_dentry);
192 new_dentry, NULL);
194 done_path_create(&new_path, new_dentry);
H A Dlibfs.c353 * @new_dentry: destination dentry
361 struct dentry *new_dentry)
366 long new_index = dentry2offset(new_dentry);
370 simple_offset_remove(new_ctx, new_dentry);
376 ret = simple_offset_add(old_ctx, new_dentry);
382 ret = simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry);
385 simple_offset_remove(old_ctx, new_dentry);
393 offset_set(new_dentry, new_index);
394 mtree_store(&new_ctx->mt, new_index, new_dentry, GFP_KERNEL);
745 * @new_dentry
358 simple_offset_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_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...]
H A Dnamei.c4536 * @new_dentry: where to create the new link
4558 struct inode *dir, struct dentry *new_dentry,
4568 error = may_create(idmap, dir, new_dentry);
4592 error = security_inode_link(old_dentry, dir, new_dentry);
4605 error = dir->i_op->link(old_dentry, dir, new_dentry);
4615 fsnotify_link(dir, inode, new_dentry);
4633 struct dentry *new_dentry; local
4660 new_dentry = filename_create(newdfd, new, &new_path,
4662 error = PTR_ERR(new_dentry);
4663 if (IS_ERR(new_dentry))
4557 vfs_link(struct dentry *old_dentry, struct mnt_idmap *idmap, struct inode *dir, struct dentry *new_dentry, struct inode **delegated_inode) argument
4764 struct dentry *new_dentry = rd->new_dentry; local
4923 struct dentry *old_dentry, *new_dentry; local
[all...]
/linux-master/fs/affs/
H A Dnamei.c406 struct inode *new_dir, struct dentry *new_dentry)
412 retval = affs_check_name(new_dentry->d_name.name,
413 new_dentry->d_name.len,
420 if (d_really_is_positive(new_dentry)) {
421 retval = affs_remove_header(new_dentry);
438 affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry);
453 struct inode *new_dir, struct dentry *new_dentry)
465 bh_new = affs_bread(sb, d_inode(new_dentry)->i_ino);
486 affs_copy_name(AFFS_TAIL(sb, bh_old)->name, new_dentry);
508 struct dentry *new_dentry, unsigne
405 affs_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
452 affs_xrename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
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/fs/sysv/
H A Dnamei.c193 struct dentry *new_dentry, unsigned int flags)
196 struct inode * new_inode = d_inode(new_dentry);
226 new_de = sysv_find_entry(new_dentry, &new_page);
238 err = sysv_add_link(new_dentry, old_inode);
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.c178 struct inode *new_dir, struct dentry *new_dentry,
182 struct inode * new_inode = d_inode(new_dentry);
212 new_de = minix_find_entry(new_dentry, &new_page);
225 err = minix_add_link(new_dentry, old_inode);
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/nfs/
H A Dunlink.c271 new_dir, data->new_dentry, task->tk_status);
307 dput(data->new_dentry);
332 * @new_dentry: dentry to which the old_dentry should be renamed
339 struct dentry *old_dentry, struct dentry *new_dentry,
374 data->new_dentry = dget(new_dentry);
383 data->args.new_name = &new_dentry->d_name;
391 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_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
/linux-master/fs/hfs/
H A Ddir.c285 struct dentry *new_dentry, unsigned int flags)
293 if (d_really_is_positive(new_dentry)) {
294 res = hfs_remove(new_dir, new_dentry);
301 new_dir, &new_dentry->d_name);
305 new_dir->i_ino, &new_dentry->d_name);
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/fs/ntfs3/
H A Dnamei.c253 struct dentry *new_dentry, u32 flags)
262 struct inode *new_inode = d_inode(new_dentry);
269 * [2048-3072) - new name (new_dentry->d_name)
282 is_same = dentry->d_name.len == new_dentry->d_name.len &&
283 !memcmp(dentry->d_name.name, new_dentry->d_name.name,
298 dget(new_dentry);
300 err = ntfs_unlink_inode(new_dir, new_dentry);
302 dput(new_dentry);
321 /* Translate new_dentry->d_name into unicode form. */
323 err = fill_name_de(sbi, new_de, &new_dentry
251 ntfs_rename(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, struct inode *new_dir, struct dentry *new_dentry, u32 flags) argument
[all...]
/linux-master/fs/orangefs/
H A Dnamei.c382 struct dentry *new_dentry,
394 old_dentry, new_dentry, d_count(new_dentry));
412 new_dentry->d_name.name,
423 if (new_dentry->d_inode)
424 inode_set_ctime_current(d_inode(new_dentry));
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/tools/testing/selftests/bpf/progs/
H A Dlocal_storage.c109 struct inode *new_dir, struct dentry *new_dentry,
115 /* new_dentry->d_inode can be NULL when the inode is renamed to a file
119 bpf_inode_storage_get(&inode_storage_map, new_dentry->d_inode, 0,
108 BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/fs/ufs/
H A Dnamei.c248 struct dentry *new_dentry, unsigned int flags)
251 struct inode *new_inode = d_inode(new_dentry);
281 new_de = ufs_find_entry(new_dir, &new_dentry->d_name, &new_page);
290 err = ufs_add_link(new_dentry, old_inode);
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/security/tomoyo/
H A Dtomoyo.c260 * @new_dentry: Pointer to "struct dentry".
265 struct dentry *new_dentry)
268 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry };
279 * @new_dentry: Pointer to "struct dentry".
287 struct dentry *new_dentry,
291 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry };
264 tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry) argument
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/crypto/
H A Dhooks.c70 struct inode *new_dir, struct dentry *new_dentry,
74 fscrypt_is_nokey_name(new_dentry))
90 d_inode(new_dentry)))
69 __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/f2fs/
H A Dnamei.c955 struct dentry *new_dentry, unsigned int flags)
959 struct inode *new_inode = d_inode(new_dentry);
988 err = f2fs_try_convert_inline_dir(old_dir, new_dentry);
1044 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name,
1079 err = f2fs_add_link(new_dentry, old_inode);
1150 struct inode *new_dir, struct dentry *new_dentry)
1154 struct inode *new_inode = d_inode(new_dentry);
1172 F2FS_I(new_dentry->d_inode)->i_projid)))
1191 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, &new_page);
1316 struct inode *new_dir, struct dentry *new_dentry,
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/jffs2/
H A Ddir.c774 struct inode *new_dir_i, struct dentry *new_dentry,
791 if (d_really_is_positive(new_dentry)) {
792 victim_f = JFFS2_INODE_INFO(d_inode(new_dentry));
793 if (d_is_dir(new_dentry)) {
821 new_dentry->d_name.name, new_dentry->d_name.len, now);
828 if (d_is_dir(new_dentry))
829 clear_nlink(d_inode(new_dentry));
831 drop_nlink(d_inode(new_dentry));
836 if (d_is_dir(new_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/fat/
H A Dnamei_msdos.c431 struct dentry *new_dentry, int is_hid)
443 new_inode = d_inode(new_dentry);
599 struct inode *new_dir, struct dentry *new_dentry,
616 err = msdos_format_name(new_dentry->d_name.name,
617 new_dentry->d_name.len, new_msdos_name,
623 (new_dentry->d_name.name[0] == '.') && (new_msdos_name[0] != '.');
626 new_dir, new_msdos_name, new_dentry, is_hid);
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/fs/hfsplus/
H A Ddir.c534 struct inode *new_dir, struct dentry *new_dentry,
543 if (d_really_is_positive(new_dentry)) {
544 if (d_is_dir(new_dentry))
545 res = hfsplus_rmdir(new_dir, new_dentry);
547 res = hfsplus_unlink(new_dir, new_dentry);
554 new_dir, &new_dentry->d_name);
556 new_dentry->d_fsdata = old_dentry->d_fsdata;
532 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) argument
/linux-master/fs/coda/
H A Ddir.c300 struct dentry *new_dentry, unsigned int flags)
303 const char *new_name = new_dentry->d_name.name;
305 int new_length = new_dentry->d_name.len;
315 if (d_really_is_positive(new_dentry)) {
316 if (d_is_dir(new_dentry)) {
320 coda_flag_inode(d_inode(new_dentry), C_VATTR);
298 coda_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 Dfsnotify.h259 * Caller must make sure that new_dentry->d_name is stable.
261 * new_dentry->d_inode NULL and instantiate inode pointer later
264 struct dentry *new_dentry)
267 audit_inode_child(dir, new_dentry, AUDIT_TYPE_CHILD_CREATE);
270 dir, &new_dentry->d_name, 0);
263 fsnotify_link(struct inode *dir, struct inode *inode, struct dentry *new_dentry) argument
/linux-master/fs/omfs/
H A Ddir.c375 struct dentry *new_dentry, unsigned int flags)
377 struct inode *new_inode = d_inode(new_dentry);
386 err = omfs_remove(new_dir, new_dentry);
398 err = omfs_add_link(new_dentry, old_inode);
373 omfs_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.h92 struct dentry *new_dentry);
/linux-master/fs/ext2/
H A Dnamei.c319 struct inode * new_dir, struct dentry * new_dentry,
323 struct inode * new_inode = d_inode(new_dentry);
361 new_de = ext2_find_entry(new_dir, &new_dentry->d_name,
376 err = ext2_add_link(new_dentry, old_inode);
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/fs/bfs/
H A Ddir.c204 struct dentry *new_dentry, unsigned int flags)
229 new_inode = d_inode(new_dentry);
230 new_bh = bfs_find_entry(new_dir, &new_dentry->d_name, &new_de);
237 error = bfs_add_entry(new_dir, &new_dentry->d_name,
202 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) argument

Completed in 270 milliseconds

123