Home
last modified time | relevance | path

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

123

/linux/fs/affs/
H A 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/fs/
H A Dinit.c167 struct dentry *new_dentry; in init_link() local
176 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link()
177 error = PTR_ERR(new_dentry); in init_link()
178 if (IS_ERR(new_dentry)) in init_link()
188 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link()
192 new_dentry, NULL); in init_link()
194 done_path_create(&new_path, new_dentry); in init_link()
H A Dlibfs.c379 struct inode *new_dir, struct dentry *new_dentry) in simple_offset_rename() argument
383 long new_offset = dentry2offset(new_dentry); in simple_offset_rename()
388 offset_set(new_dentry, 0); in simple_offset_rename()
410 struct dentry *new_dentry) in simple_offset_rename_exchange() argument
415 long new_index = dentry2offset(new_dentry); in simple_offset_rename_exchange()
419 simple_offset_remove(new_ctx, new_dentry); in simple_offset_rename_exchange()
425 ret = simple_offset_replace(old_ctx, new_dentry, old_index); in simple_offset_rename_exchange()
431 ret = simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry); in simple_offset_rename_exchange()
434 simple_offset_remove(old_ctx, new_dentry); in simple_offset_rename_exchange()
441 (void)simple_offset_replace(new_ctx, new_dentry, new_index); in simple_offset_rename_exchange()
[all …]
H A Dnamei.c4746 struct inode *dir, struct dentry *new_dentry, in vfs_link() argument
4756 error = may_create(idmap, dir, new_dentry); in vfs_link()
4780 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link()
4793 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link()
4803 fsnotify_link(dir, inode, new_dentry); in vfs_link()
4821 struct dentry *new_dentry; in do_linkat() local
4847 new_dentry = filename_create(newdfd, new, &new_path, in do_linkat()
4849 error = PTR_ERR(new_dentry); in do_linkat()
4850 if (IS_ERR(new_dentry)) in do_linkat()
4860 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
[all …]
/linux/fs/ntfs3/
H A Dnamei.c236 struct dentry *new_dentry, u32 flags) in ntfs_rename() argument
245 struct inode *new_inode = d_inode(new_dentry); in ntfs_rename()
265 is_same = dentry->d_name.len == new_dentry->d_name.len && in ntfs_rename()
266 !memcmp(dentry->d_name.name, new_dentry->d_name.name, in ntfs_rename()
281 dget(new_dentry); in ntfs_rename()
283 err = ntfs_unlink_inode(new_dir, new_dentry); in ntfs_rename()
285 dput(new_dentry); in ntfs_rename()
306 err = fill_name_de(sbi, new_de, &new_dentry->d_name, NULL); in ntfs_rename()
322 simple_rename_timestamp(dir, dentry, new_dir, new_dentry); in ntfs_rename()
/linux/fs/nfs/
H A Dunlink.c273 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 Ddir.c2688 struct dentry *new_dentry = data->new_dentry; in nfs_unblock_rename() local
2690 unblock_revalidate(new_dentry); in nfs_unblock_rename()
2719 struct dentry *new_dentry, unsigned int flags) in nfs_rename() argument
2722 struct inode *new_inode = d_inode(new_dentry); in nfs_rename()
2732 old_dentry, new_dentry, in nfs_rename()
2733 d_count(new_dentry)); in nfs_rename()
2735 trace_nfs_rename_enter(old_dir, old_dentry, new_dir, new_dentry); in nfs_rename()
2749 if (WARN_ON(new_dentry->d_flags & DCACHE_NFSFS_RENAMED) || in nfs_rename()
2750 WARN_ON(new_dentry->d_fsdata == NFS_FSDATA_BLOCKED)) in nfs_rename()
2753 spin_lock(&new_dentry->d_lock); in nfs_rename()
[all …]
/linux/fs/hfs/
H A 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/fs/f2fs/
H A Dnamei.c887 struct dentry *new_dentry, unsigned int flags) in f2fs_rename() argument
891 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename()
920 err = f2fs_try_convert_inline_dir(old_dir, new_dentry); in f2fs_rename()
976 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename()
1011 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename()
1082 struct inode *new_dir, struct dentry *new_dentry) in f2fs_cross_rename() argument
1086 struct inode *new_inode = d_inode(new_dentry); in f2fs_cross_rename()
1104 F2FS_I(new_dentry->d_inode)->i_projid))) in f2fs_cross_rename()
1123 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, &new_page); in f2fs_cross_rename()
1248 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename2() argument
[all …]
/linux/fs/orangefs/
H A Dnamei.c376 struct dentry *new_dentry, in orangefs_rename() argument
388 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename()
403 strscpy(new_op->upcall.req.rename.d_new_name, new_dentry->d_name.name); in orangefs_rename()
413 if (new_dentry->d_inode) in orangefs_rename()
414 inode_set_ctime_current(d_inode(new_dentry)); in orangefs_rename()
/linux/fs/jffs2/
H A Ddir.c774 struct inode *new_dir_i, struct dentry *new_dentry, in jffs2_rename() argument
791 if (d_really_is_positive(new_dentry)) { in jffs2_rename()
792 victim_f = JFFS2_INODE_INFO(d_inode(new_dentry)); in jffs2_rename()
793 if (d_is_dir(new_dentry)) { in jffs2_rename()
821 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename()
828 if (d_is_dir(new_dentry)) in jffs2_rename()
829 clear_nlink(d_inode(new_dentry)); in jffs2_rename()
831 drop_nlink(d_inode(new_dentry)); in jffs2_rename()
836 if (d_is_dir(new_dentry)) in jffs2_rename()
873 d_invalidate(new_dentry); in jffs2_rename()
/linux/fs/sysv/
H A 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_folio); in sysv_rename()
238 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
/linux/fs/minix/
H A Dnamei.c178 struct inode *new_dir, struct dentry *new_dentry, in minix_rename() argument
182 struct inode * new_inode = d_inode(new_dentry); in minix_rename()
212 new_de = minix_find_entry(new_dentry, &new_folio); in minix_rename()
224 err = minix_add_link(new_dentry, old_inode); in minix_rename()
/linux/fs/coda/
H A 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/fs/hfsplus/
H A 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/fs/ufs/
H A Dnamei.c246 struct dentry *new_dentry, unsigned int flags) in ufs_rename() argument
249 struct inode *new_inode = d_inode(new_dentry); in ufs_rename()
279 new_de = ufs_find_entry(new_dir, &new_dentry->d_name, &new_folio); in ufs_rename()
291 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
/linux/fs/afs/
H A Ddir.c44 struct dentry *new_dentry, unsigned int flags);
1864 struct dentry *new_dentry = op->dentry_2; in afs_rename_edit_dir() local
1888 afs_edit_dir_remove(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir()
1891 afs_edit_dir_add(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir()
1901 new_inode = d_inode(new_dentry); in afs_rename_edit_dir()
1920 d_move(old_dentry, new_dentry); in afs_rename_edit_dir()
1948 struct dentry *new_dentry, unsigned int flags) in afs_rename() argument
1969 new_dentry); in afs_rename()
1990 op->dentry_2 = new_dentry; in afs_rename()
1991 op->rename.new_negative = d_is_negative(new_dentry); in afs_rename()
[all …]
/linux/fs/fat/
H A 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/fs/ocfs2/
H A Dnamei.c1206 struct dentry *new_dentry, in ocfs2_rename() argument
1212 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename()
1238 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1240 new_dentry->d_name.len, new_dentry->d_name.name); in ocfs2_rename()
1387 status = ocfs2_find_files_on_disk(new_dentry->d_name.name, in ocfs2_rename()
1388 new_dentry->d_name.len, in ocfs2_rename()
1424 trace_ocfs2_rename_target_exists(new_dentry->d_name.len, in ocfs2_rename()
1425 new_dentry->d_name.name); in ocfs2_rename()
1447 status = ocfs2_remote_dentry_delete(new_dentry); in ocfs2_rename()
1471 BUG_ON(d_inode(new_dentry->d_parent) != new_dir); in ocfs2_rename()
[all …]
/linux/security/tomoyo/
H A Dtomoyo.c265 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/security/landlock/
H A Dfs.c1090 struct dentry *const new_dentry, in current_check_refer_path() argument
1108 if (unlikely(d_is_negative(new_dentry))) in current_check_refer_path()
1111 get_mode_access(d_backing_inode(new_dentry)->i_mode); in current_check_refer_path()
1119 access_request_parent2 |= maybe_remove(new_dentry); in current_check_refer_path()
1172 exchange ? new_dentry : NULL)) in current_check_refer_path()
1390 struct dentry *const new_dentry) in hook_path_link() argument
1392 return current_check_refer_path(old_dentry, new_dir, new_dentry, false, in hook_path_link()
1399 struct dentry *const new_dentry, in hook_path_rename() argument
1403 return current_check_refer_path(old_dentry, new_dir, new_dentry, true, in hook_path_rename()
/linux/fs/ubifs/
H A Ddir.c1322 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()
[all …]
/linux/fs/ext2/
H A 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()
361 new_de = ext2_find_entry(new_dir, &new_dentry->d_name, in ext2_rename()
376 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
/linux/fs/bfs/
H A 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/fs/crypto/
H A Dhooks.c90 struct inode *new_dir, struct dentry *new_dentry, in __fscrypt_prepare_rename() argument
94 fscrypt_is_nokey_name(new_dentry)) in __fscrypt_prepare_rename()
110 d_inode(new_dentry))) in __fscrypt_prepare_rename()

123