Home
last modified time | relevance | path

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

123

/linux/fs/affs/
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/
A 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()
A Dnamei.c4404 struct dentry *new_dentry; in do_linkat() local
4434 if (IS_ERR(new_dentry)) in do_linkat()
4534 struct dentry *new_dentry = rd->new_dentry; in vfs_rename() local
4558 new_dentry, is_dir); in vfs_rename()
4594 dget(new_dentry); in vfs_rename()
4636 dont_mount(new_dentry); in vfs_rename()
4650 dput(new_dentry); in vfs_rename()
4730 if (IS_ERR(new_dentry)) in do_renameat2()
4761 if (new_dentry == trap) in do_renameat2()
4773 rd.new_dentry = new_dentry; in do_renameat2()
[all …]
/linux/fs/ntfs3/
A Dnamei.c232 struct dentry *new_dentry, u32 flags) in ntfs_rename() argument
241 struct inode *new_inode = d_inode(new_dentry); in ntfs_rename()
258 is_same = dentry->d_name.len == new_dentry->d_name.len && in ntfs_rename()
259 !memcmp(dentry->d_name.name, new_dentry->d_name.name, in ntfs_rename()
274 dget(new_dentry); in ntfs_rename()
276 err = ntfs_unlink_inode(new_dir, new_dentry); in ntfs_rename()
278 dput(new_dentry); in ntfs_rename()
299 err = fill_name_de(sbi, new_de, &new_dentry->d_name, NULL); in ntfs_rename()
/linux/fs/nfs/
A Dunlink.c266 new_dir, data->new_dentry, task->tk_status); in nfs_async_rename_done()
302 dput(data->new_dentry); in nfs_async_rename_release()
334 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument
364 data->new_dentry = dget(new_dentry); in nfs_async_rename()
373 data->args.new_name = &new_dentry->d_name; in nfs_async_rename()
381 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); in nfs_async_rename()
A Dnfstrace.h683 const struct dentry *new_dentry
686 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry),
693 __string(new_name, new_dentry->d_name.name)
701 __assign_str(new_name, new_dentry->d_name.name);
720 const struct dentry *new_dentry \
722 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
729 const struct dentry *new_dentry,
741 __string(new_name, new_dentry->d_name.name)
750 __assign_str(new_name, new_dentry->d_name.name);
771 const struct dentry *new_dentry, \
[all …]
/linux/fs/orangefs/
A 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 new_dentry->d_inode->i_ctime = current_time(new_dentry->d_inode); in orangefs_rename()
/linux/fs/hfs/
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/jffs2/
A Ddir.c767 struct inode *new_dir_i, struct dentry *new_dentry, in jffs2_rename() argument
784 if (d_really_is_positive(new_dentry)) { in jffs2_rename()
785 victim_f = JFFS2_INODE_INFO(d_inode(new_dentry)); in jffs2_rename()
786 if (d_is_dir(new_dentry)) { in jffs2_rename()
814 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename()
821 if (d_is_dir(new_dentry)) in jffs2_rename()
822 clear_nlink(d_inode(new_dentry)); in jffs2_rename()
824 drop_nlink(d_inode(new_dentry)); in jffs2_rename()
829 if (d_is_dir(new_dentry)) in jffs2_rename()
866 d_invalidate(new_dentry); in jffs2_rename()
/linux/fs/sysv/
A Dnamei.c194 struct dentry *new_dentry, unsigned int flags) in sysv_rename() argument
197 struct inode * new_inode = d_inode(new_dentry); in sysv_rename()
227 new_de = sysv_find_entry(new_dentry, &new_page); in sysv_rename()
236 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
/linux/fs/f2fs/
A Dnamei.c924 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename() argument
929 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename()
957 err = f2fs_try_convert_inline_dir(old_dir, new_dentry); in f2fs_rename()
1006 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename()
1041 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename()
1116 struct inode *new_dir, struct dentry *new_dentry) in f2fs_cross_rename() argument
1120 struct inode *new_inode = d_inode(new_dentry); in f2fs_cross_rename()
1138 F2FS_I(new_dentry->d_inode)->i_projid))) in f2fs_cross_rename()
1282 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename2() argument
1297 new_dir, new_dentry); in f2fs_rename2()
[all …]
/linux/fs/minix/
A Dnamei.c189 struct inode *new_dir, struct dentry *new_dentry, in minix_rename() argument
193 struct inode * new_inode = d_inode(new_dentry); in minix_rename()
223 new_de = minix_find_entry(new_dentry, &new_page); in minix_rename()
232 err = minix_add_link(new_dentry, old_inode); in minix_rename()
/linux/fs/coda/
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/
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/afs/
A Ddir.c1853 new_inode = d_inode(new_dentry); in afs_rename_edit_dir()
1872 d_move(old_dentry, new_dentry); in afs_rename_edit_dir()
1921 new_dentry); in afs_rename()
1942 op->dentry_2 = new_dentry; in afs_rename()
1951 if (d_is_positive(new_dentry) && !d_is_dir(new_dentry)) { in afs_rename()
1955 if (!d_unhashed(new_dentry)) { in afs_rename()
1956 d_drop(new_dentry); in afs_rename()
1957 op->rename.rehash = new_dentry; in afs_rename()
1960 if (d_count(new_dentry) > 2) { in afs_rename()
1963 &new_dentry->d_name); in afs_rename()
[all …]
/linux/fs/ufs/
A 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/fs/fat/
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/
A Dnamei.c1204 struct dentry *new_dentry, in ocfs2_rename() argument
1210 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename()
1238 new_dentry->d_name.len, new_dentry->d_name.name); in ocfs2_rename()
1387 new_dentry->d_name.len, in ocfs2_rename()
1424 new_dentry->d_name.name); in ocfs2_rename()
1473 new_dentry->d_name.name, in ocfs2_rename()
1474 new_dentry->d_name.len); in ocfs2_rename()
1479 new_dentry->d_name.name, in ocfs2_rename()
1480 new_dentry->d_name.len, in ocfs2_rename()
1571 new_dentry->d_name.len, new_dentry->d_name.name, in ocfs2_rename()
[all …]
/linux/security/tomoyo/
A Dtomoyo.c252 struct dentry *new_dentry) in tomoyo_path_link() argument
255 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link()
273 struct dentry *new_dentry) in tomoyo_path_rename() argument
276 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename()
/linux/include/linux/
A Dfsnotify.h215 struct dentry *new_dentry) in fsnotify_link() argument
218 audit_inode_child(dir, new_dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_link()
221 dir, &new_dentry->d_name, 0); in fsnotify_link()
/linux/fs/ecryptfs/
A Dinode.c423 struct dentry *new_dentry) in ecryptfs_link() argument
433 rc = lock_parent(new_dentry, &lower_new_dentry, &lower_dir); in ecryptfs_link()
439 rc = ecryptfs_interpose(lower_new_dentry, new_dentry, dir->i_sb); in ecryptfs_link()
446 i_size_write(d_inode(new_dentry), file_size_save); in ecryptfs_link()
577 struct dentry *new_dentry, unsigned int flags) in ecryptfs_rename() argument
592 lower_new_dir_dentry = ecryptfs_dentry_to_lower(new_dentry->d_parent); in ecryptfs_rename()
595 lower_new_dentry = ecryptfs_dentry_to_lower(new_dentry); in ecryptfs_rename()
597 target_inode = d_inode(new_dentry); in ecryptfs_rename()
622 rd.new_dentry = lower_new_dentry; in ecryptfs_rename()
/linux/fs/ext2/
A Dnamei.c326 struct inode * new_dir, struct dentry * new_dentry, in ext2_rename() argument
330 struct inode * new_inode = d_inode(new_dentry); in ext2_rename()
373 new_de = ext2_find_entry(new_dir, &new_dentry->d_name, in ext2_rename()
386 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
/linux/fs/crypto/
A Dhooks.c72 struct inode *new_dir, struct dentry *new_dentry, in __fscrypt_prepare_rename() argument
76 fscrypt_is_nokey_name(new_dentry)) in __fscrypt_prepare_rename()
92 d_inode(new_dentry))) in __fscrypt_prepare_rename()
/linux/fs/bfs/
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/ubifs/
A Ddir.c1251 struct inode *new_dir, struct dentry *new_dentry, in do_rename() argument
1256 struct inode *new_inode = d_inode(new_dentry); in do_rename()
1282 new_dentry, new_dir->i_ino, flags); in do_rename()
1302 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_nm); in do_rename()
1499 struct inode *new_dir, struct dentry *new_dentry) in ubifs_xrename() argument
1506 struct inode *snd_inode = d_inode(new_dentry); in ubifs_xrename()
1517 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &snd_nm); in ubifs_xrename()
1555 struct inode *new_dir, struct dentry *new_dentry, in ubifs_rename() argument
1567 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ubifs_rename()
1573 return ubifs_xrename(old_dir, old_dentry, new_dir, new_dentry); in ubifs_rename()
[all …]

Completed in 56 milliseconds

123