Home
last modified time | relevance | path

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

123

/Linux-v6.6/fs/affs/
Dnamei.c406 struct inode *new_dir, struct dentry *new_dentry) in affs_rename() argument
412 retval = affs_check_name(new_dentry->d_name.name, in affs_rename()
413 new_dentry->d_name.len, in affs_rename()
420 if (d_really_is_positive(new_dentry)) { in affs_rename()
421 retval = affs_remove_header(new_dentry); in affs_rename()
438 affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry); in affs_rename()
453 struct inode *new_dir, struct dentry *new_dentry) in affs_xrename() argument
465 bh_new = affs_bread(sb, d_inode(new_dentry)->i_ino); in affs_xrename()
486 affs_copy_name(AFFS_TAIL(sb, bh_old)->name, new_dentry); in affs_xrename()
508 struct dentry *new_dentry, unsigned int flags) in affs_rename2() argument
[all …]
/Linux-v6.6/fs/
Dinit.c168 struct dentry *new_dentry; in init_link() local
177 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link()
178 error = PTR_ERR(new_dentry); in init_link()
179 if (IS_ERR(new_dentry)) in init_link()
189 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link()
193 new_dentry, NULL); in init_link()
195 done_path_create(&new_path, new_dentry); in init_link()
Dlibfs.c325 struct dentry *new_dentry) in simple_offset_rename_exchange() argument
330 u32 new_index = dentry2offset(new_dentry); in simple_offset_rename_exchange()
334 simple_offset_remove(new_ctx, new_dentry); in simple_offset_rename_exchange()
340 ret = simple_offset_add(old_ctx, new_dentry); in simple_offset_rename_exchange()
346 ret = simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry); in simple_offset_rename_exchange()
349 simple_offset_remove(old_ctx, new_dentry); in simple_offset_rename_exchange()
357 offset_set(new_dentry, new_index); in simple_offset_rename_exchange()
358 xa_store(&new_ctx->xa, new_index, new_dentry, GFP_KERNEL); in simple_offset_rename_exchange()
708 struct inode *new_dir, struct dentry *new_dentry) in simple_rename_timestamp() argument
710 struct inode *newino = d_inode(new_dentry); in simple_rename_timestamp()
[all …]
Dnamei.c4558 struct inode *dir, struct dentry *new_dentry, in vfs_link() argument
4568 error = may_create(idmap, dir, new_dentry); in vfs_link()
4592 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link()
4605 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link()
4615 fsnotify_link(dir, inode, new_dentry); in vfs_link()
4633 struct dentry *new_dentry; in do_linkat() local
4660 new_dentry = filename_create(newdfd, new, &new_path, in do_linkat()
4662 error = PTR_ERR(new_dentry); in do_linkat()
4663 if (IS_ERR(new_dentry)) in do_linkat()
4673 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
[all …]
/Linux-v6.6/fs/ntfs3/
Dnamei.c244 struct dentry *new_dentry, u32 flags) in ntfs_rename() argument
253 struct inode *new_inode = d_inode(new_dentry); in ntfs_rename()
270 is_same = dentry->d_name.len == new_dentry->d_name.len && in ntfs_rename()
271 !memcmp(dentry->d_name.name, new_dentry->d_name.name, in ntfs_rename()
286 dget(new_dentry); in ntfs_rename()
288 err = ntfs_unlink_inode(new_dir, new_dentry); in ntfs_rename()
290 dput(new_dentry); in ntfs_rename()
311 err = fill_name_de(sbi, new_de, &new_dentry->d_name, NULL); in ntfs_rename()
327 simple_rename_timestamp(dir, dentry, new_dir, new_dentry); in ntfs_rename()
/Linux-v6.6/fs/nfs/
Dunlink.c271 new_dir, data->new_dentry, task->tk_status); in nfs_async_rename_done()
307 dput(data->new_dentry); in nfs_async_rename_release()
339 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument
374 data->new_dentry = dget(new_dentry); in nfs_async_rename()
383 data->args.new_name = &new_dentry->d_name; in nfs_async_rename()
391 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); in nfs_async_rename()
Ddir.c2620 struct dentry *new_dentry = data->new_dentry; in nfs_unblock_rename() local
2622 new_dentry->d_fsdata = NULL; in nfs_unblock_rename()
2623 wake_up_var(&new_dentry->d_fsdata); in nfs_unblock_rename()
2652 struct dentry *new_dentry, unsigned int flags) in nfs_rename() argument
2655 struct inode *new_inode = d_inode(new_dentry); in nfs_rename()
2665 old_dentry, new_dentry, in nfs_rename()
2666 d_count(new_dentry)); in nfs_rename()
2668 trace_nfs_rename_enter(old_dir, old_dentry, new_dir, new_dentry); in nfs_rename()
2682 if (WARN_ON(new_dentry->d_flags & DCACHE_NFSFS_RENAMED) || in nfs_rename()
2683 WARN_ON(new_dentry->d_fsdata == NFS_FSDATA_BLOCKED)) in nfs_rename()
[all …]
/Linux-v6.6/fs/hfs/
Ddir.c285 struct dentry *new_dentry, unsigned int flags) in hfs_rename() argument
293 if (d_really_is_positive(new_dentry)) { in hfs_rename()
294 res = hfs_remove(new_dir, new_dentry); in hfs_rename()
301 new_dir, &new_dentry->d_name); in hfs_rename()
305 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
/Linux-v6.6/security/landlock/
Dfs.c815 struct dentry *const new_dentry, in current_check_refer_path() argument
833 if (unlikely(d_is_negative(new_dentry))) in current_check_refer_path()
836 get_mode_access(d_backing_inode(new_dentry)->i_mode); in current_check_refer_path()
844 access_request_parent2 |= maybe_remove(new_dentry); in current_check_refer_path()
889 exchange ? new_dentry : NULL)) in current_check_refer_path()
1104 struct dentry *const new_dentry) in hook_path_link() argument
1106 return current_check_refer_path(old_dentry, new_dir, new_dentry, false, in hook_path_link()
1113 struct dentry *const new_dentry, in hook_path_rename() argument
1117 return current_check_refer_path(old_dentry, new_dir, new_dentry, true, in hook_path_rename()
/Linux-v6.6/fs/sysv/
Dnamei.c193 struct dentry *new_dentry, unsigned int flags) in sysv_rename() argument
196 struct inode * new_inode = d_inode(new_dentry); in sysv_rename()
226 new_de = sysv_find_entry(new_dentry, &new_page); in sysv_rename()
238 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
/Linux-v6.6/fs/orangefs/
Dnamei.c382 struct dentry *new_dentry, in orangefs_rename() argument
394 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename()
412 new_dentry->d_name.name, in orangefs_rename()
423 if (new_dentry->d_inode) in orangefs_rename()
424 inode_set_ctime_current(d_inode(new_dentry)); in orangefs_rename()
/Linux-v6.6/fs/jffs2/
Ddir.c771 struct inode *new_dir_i, struct dentry *new_dentry, in jffs2_rename() argument
788 if (d_really_is_positive(new_dentry)) { in jffs2_rename()
789 victim_f = JFFS2_INODE_INFO(d_inode(new_dentry)); in jffs2_rename()
790 if (d_is_dir(new_dentry)) { in jffs2_rename()
818 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename()
825 if (d_is_dir(new_dentry)) in jffs2_rename()
826 clear_nlink(d_inode(new_dentry)); in jffs2_rename()
828 drop_nlink(d_inode(new_dentry)); in jffs2_rename()
833 if (d_is_dir(new_dentry)) in jffs2_rename()
870 d_invalidate(new_dentry); in jffs2_rename()
/Linux-v6.6/fs/minix/
Dnamei.c179 struct inode *new_dir, struct dentry *new_dentry, in minix_rename() argument
183 struct inode * new_inode = d_inode(new_dentry); in minix_rename()
213 new_de = minix_find_entry(new_dentry, &new_page); in minix_rename()
226 err = minix_add_link(new_dentry, old_inode); in minix_rename()
/Linux-v6.6/fs/coda/
Ddir.c300 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-v6.6/fs/hfsplus/
Ddir.c534 struct inode *new_dir, struct dentry *new_dentry, in hfsplus_rename() argument
543 if (d_really_is_positive(new_dentry)) { in hfsplus_rename()
544 if (d_is_dir(new_dentry)) in hfsplus_rename()
545 res = hfsplus_rmdir(new_dir, new_dentry); in hfsplus_rename()
547 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename()
554 new_dir, &new_dentry->d_name); in hfsplus_rename()
556 new_dentry->d_fsdata = old_dentry->d_fsdata; in hfsplus_rename()
/Linux-v6.6/fs/ufs/
Dnamei.c248 struct dentry *new_dentry, unsigned int flags) in ufs_rename() argument
251 struct inode *new_inode = d_inode(new_dentry); in ufs_rename()
281 new_de = ufs_find_entry(new_dir, &new_dentry->d_name, &new_page); in ufs_rename()
290 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
/Linux-v6.6/fs/afs/
Ddir.c43 struct dentry *new_dentry, unsigned int flags);
1831 struct dentry *new_dentry = op->dentry_2; in afs_rename_edit_dir() local
1855 afs_edit_dir_remove(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir()
1858 afs_edit_dir_add(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir()
1862 new_inode = d_inode(new_dentry); in afs_rename_edit_dir()
1881 d_move(old_dentry, new_dentry); in afs_rename_edit_dir()
1909 struct dentry *new_dentry, unsigned int flags) in afs_rename() argument
1930 new_dentry); in afs_rename()
1951 op->dentry_2 = new_dentry; in afs_rename()
1952 op->rename.new_negative = d_is_negative(new_dentry); in afs_rename()
[all …]
/Linux-v6.6/fs/f2fs/
Dnamei.c955 struct dentry *new_dentry, unsigned int flags) in f2fs_rename() argument
959 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename()
987 err = f2fs_try_convert_inline_dir(old_dir, new_dentry); in f2fs_rename()
1036 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename()
1071 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename()
1145 struct inode *new_dir, struct dentry *new_dentry) in f2fs_cross_rename() argument
1149 struct inode *new_inode = d_inode(new_dentry); in f2fs_cross_rename()
1167 F2FS_I(new_dentry->d_inode)->i_projid))) in f2fs_cross_rename()
1186 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, &new_page); in f2fs_cross_rename()
1311 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename2() argument
[all …]
/Linux-v6.6/fs/fat/
Dnamei_msdos.c431 struct dentry *new_dentry, int is_hid) in do_msdos_rename() argument
443 new_inode = d_inode(new_dentry); in do_msdos_rename()
599 struct inode *new_dir, struct dentry *new_dentry, in msdos_rename() argument
616 err = msdos_format_name(new_dentry->d_name.name, in msdos_rename()
617 new_dentry->d_name.len, new_msdos_name, in msdos_rename()
623 (new_dentry->d_name.name[0] == '.') && (new_msdos_name[0] != '.'); in msdos_rename()
626 new_dir, new_msdos_name, new_dentry, is_hid); in msdos_rename()
/Linux-v6.6/fs/ubifs/
Ddir.c1283 struct inode *new_dir, struct dentry *new_dentry, in do_rename() argument
1288 struct inode *new_inode = d_inode(new_dentry); in do_rename()
1315 new_dentry, new_dir->i_ino, flags); in do_rename()
1337 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_nm); in do_rename()
1415 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in do_rename()
1546 struct inode *new_dir, struct dentry *new_dentry) in ubifs_xrename() argument
1553 struct inode *snd_inode = d_inode(new_dentry); in ubifs_xrename()
1566 new_dentry, snd_inode->i_ino, new_dir->i_ino); in ubifs_xrename()
1572 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &snd_nm); in ubifs_xrename()
1584 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in ubifs_xrename()
[all …]
/Linux-v6.6/fs/ocfs2/
Dnamei.c1202 struct dentry *new_dentry, in ocfs2_rename() argument
1208 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename()
1234 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1236 new_dentry->d_name.len, new_dentry->d_name.name); in ocfs2_rename()
1384 status = ocfs2_find_files_on_disk(new_dentry->d_name.name, in ocfs2_rename()
1385 new_dentry->d_name.len, in ocfs2_rename()
1421 trace_ocfs2_rename_target_exists(new_dentry->d_name.len, in ocfs2_rename()
1422 new_dentry->d_name.name); in ocfs2_rename()
1444 status = ocfs2_remote_dentry_delete(new_dentry); in ocfs2_rename()
1468 BUG_ON(d_inode(new_dentry->d_parent) != new_dir); in ocfs2_rename()
[all …]
/Linux-v6.6/security/tomoyo/
Dtomoyo.c264 struct dentry *new_dentry) in tomoyo_path_link() argument
267 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link()
286 struct dentry *new_dentry, in tomoyo_path_rename() argument
290 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename()
/Linux-v6.6/fs/ext2/
Dnamei.c319 struct inode * new_dir, struct dentry * new_dentry, in ext2_rename() argument
323 struct inode * new_inode = d_inode(new_dentry); in ext2_rename()
360 new_de = ext2_find_entry(new_dir, &new_dentry->d_name, in ext2_rename()
375 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
/Linux-v6.6/fs/bfs/
Ddir.c204 struct dentry *new_dentry, unsigned int flags) in bfs_rename() argument
229 new_inode = d_inode(new_dentry); in bfs_rename()
230 new_bh = bfs_find_entry(new_dir, &new_dentry->d_name, &new_de); in bfs_rename()
237 error = bfs_add_entry(new_dir, &new_dentry->d_name, in bfs_rename()
/Linux-v6.6/include/linux/
Dfsnotify.h220 struct dentry *new_dentry) in fsnotify_link() argument
223 audit_inode_child(dir, new_dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_link()
226 dir, &new_dentry->d_name, 0); in fsnotify_link()

123