Home
last modified time | relevance | path

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

123

/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 …]
/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()
Dnamei.c4510 struct inode *dir, struct dentry *new_dentry, in vfs_link() argument
4520 error = may_create(mnt_userns, dir, new_dentry); in vfs_link()
4544 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link()
4557 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link()
4567 fsnotify_link(dir, inode, new_dentry); in vfs_link()
4585 struct dentry *new_dentry; in do_linkat() local
4612 new_dentry = filename_create(newdfd, new, &new_path, in do_linkat()
4614 error = PTR_ERR(new_dentry); in do_linkat()
4615 if (IS_ERR(new_dentry)) in do_linkat()
4625 error = security_path_link(old_path.dentry, &new_path, new_dentry); in do_linkat()
[all …]
/fs/ntfs3/
Dnamei.c242 struct dentry *new_dentry, u32 flags) in ntfs_rename() argument
251 struct inode *new_inode = d_inode(new_dentry); in ntfs_rename()
268 is_same = dentry->d_name.len == new_dentry->d_name.len && in ntfs_rename()
269 !memcmp(dentry->d_name.name, new_dentry->d_name.name, in ntfs_rename()
284 dget(new_dentry); in ntfs_rename()
286 err = ntfs_unlink_inode(new_dir, new_dentry); in ntfs_rename()
288 dput(new_dentry); in ntfs_rename()
309 err = fill_name_de(sbi, new_de, &new_dentry->d_name, NULL); in ntfs_rename()
/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 new_dentry->d_inode->i_ctime = current_time(new_dentry->d_inode); in orangefs_rename()
/fs/nfs/
Dunlink.c270 new_dir, data->new_dentry, task->tk_status); in nfs_async_rename_done()
306 dput(data->new_dentry); in nfs_async_rename_release()
338 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument
372 data->new_dentry = dget(new_dentry); in nfs_async_rename()
381 data->args.new_name = &new_dentry->d_name; in nfs_async_rename()
389 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); in nfs_async_rename()
Dnfstrace.h747 const struct dentry *new_dentry
750 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry),
757 __string(new_name, new_dentry->d_name.name)
765 __assign_str(new_name, new_dentry->d_name.name);
784 const struct dentry *new_dentry \
786 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
793 const struct dentry *new_dentry,
797 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error),
805 __string(new_name, new_dentry->d_name.name)
814 __assign_str(new_name, new_dentry->d_name.name);
[all …]
/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()
/fs/jffs2/
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()
/fs/sysv/
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()
/fs/minix/
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()
/fs/afs/
Ddir.c43 struct dentry *new_dentry, unsigned int flags);
1877 struct dentry *new_dentry = op->dentry_2; in afs_rename_edit_dir() local
1901 afs_edit_dir_remove(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir()
1904 afs_edit_dir_add(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir()
1908 new_inode = d_inode(new_dentry); in afs_rename_edit_dir()
1927 d_move(old_dentry, new_dentry); in afs_rename_edit_dir()
1955 struct dentry *new_dentry, unsigned int flags) in afs_rename() argument
1976 new_dentry); in afs_rename()
1997 op->dentry_2 = new_dentry; in afs_rename()
1998 op->rename.new_negative = d_is_negative(new_dentry); in afs_rename()
[all …]
/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()
/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()
322 coda_flag_inode(d_inode(new_dentry), C_VATTR); in coda_rename()
/fs/f2fs/
Dnamei.c938 struct dentry *new_dentry, unsigned int flags) in f2fs_rename() argument
942 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename()
970 err = f2fs_try_convert_inline_dir(old_dir, new_dentry); in f2fs_rename()
1019 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename()
1054 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename()
1128 struct inode *new_dir, struct dentry *new_dentry) in f2fs_cross_rename() argument
1132 struct inode *new_inode = d_inode(new_dentry); in f2fs_cross_rename()
1150 F2FS_I(new_dentry->d_inode)->i_projid))) in f2fs_cross_rename()
1169 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, &new_page); in f2fs_cross_rename()
1294 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename2() argument
[all …]
/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 …]
/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()
/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()
/fs/ecryptfs/
Dinode.c431 struct dentry *new_dentry) in ecryptfs_link() argument
441 rc = lock_parent(new_dentry, &lower_new_dentry, &lower_dir); in ecryptfs_link()
447 rc = ecryptfs_interpose(lower_new_dentry, new_dentry, dir->i_sb); in ecryptfs_link()
454 i_size_write(d_inode(new_dentry), file_size_save); in ecryptfs_link()
585 struct dentry *new_dentry, unsigned int flags) in ecryptfs_rename() argument
600 lower_new_dir_dentry = ecryptfs_dentry_to_lower(new_dentry->d_parent); in ecryptfs_rename()
603 lower_new_dentry = ecryptfs_dentry_to_lower(new_dentry); in ecryptfs_rename()
605 target_inode = d_inode(new_dentry); in ecryptfs_rename()
630 rd.new_dentry = lower_new_dentry; in ecryptfs_rename()
/fs/ext2/
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()
/fs/ubifs/
Ddir.c1285 struct inode *new_dir, struct dentry *new_dentry, in do_rename() argument
1290 struct inode *new_inode = d_inode(new_dentry); in do_rename()
1318 new_dentry, new_dir->i_ino, flags); in do_rename()
1340 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_nm); in do_rename()
1553 struct inode *new_dir, struct dentry *new_dentry) in ubifs_xrename() argument
1560 struct inode *snd_inode = d_inode(new_dentry); in ubifs_xrename()
1571 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &snd_nm); in ubifs_xrename()
1614 struct inode *new_dir, struct dentry *new_dentry, in ubifs_rename() argument
1626 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ubifs_rename()
1632 return ubifs_xrename(old_dir, old_dentry, new_dir, new_dentry); in ubifs_rename()
[all …]
/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()
/fs/crypto/
Dhooks.c70 struct inode *new_dir, struct dentry *new_dentry, in __fscrypt_prepare_rename() argument
74 fscrypt_is_nokey_name(new_dentry)) in __fscrypt_prepare_rename()
90 d_inode(new_dentry))) in __fscrypt_prepare_rename()
/fs/omfs/
Ddir.c375 struct dentry *new_dentry, unsigned int flags) in omfs_rename() argument
377 struct inode *new_inode = d_inode(new_dentry); in omfs_rename()
386 err = omfs_remove(new_dir, new_dentry); in omfs_rename()
398 err = omfs_add_link(new_dentry, old_inode); in omfs_rename()
/fs/9p/
Dvfs_inode.c921 struct dentry *new_dentry, unsigned int flags) in v9fs_vfs_rename() argument
938 new_inode = d_inode(new_dentry); in v9fs_vfs_rename()
954 dfid = v9fs_parent_fid(new_dentry); in v9fs_vfs_rename()
966 newdirfid, new_dentry->d_name.name); in v9fs_vfs_rename()
969 new_dentry->d_name.name); in v9fs_vfs_rename()
973 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename()
984 wstat.name = new_dentry->d_name.name; in v9fs_vfs_rename()
1005 d_move(old_dentry, new_dentry); in v9fs_vfs_rename()

123