Home
last modified time | relevance | path

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

12

/fs/affs/
Dnamei.c403 struct inode *new_dir, struct dentry *new_dentry) in affs_rename() argument
409 retval = affs_check_name(new_dentry->d_name.name, in affs_rename()
410 new_dentry->d_name.len, in affs_rename()
417 if (d_really_is_positive(new_dentry)) { in affs_rename()
418 retval = affs_remove_header(new_dentry); in affs_rename()
435 affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry); in affs_rename()
450 struct inode *new_dir, struct dentry *new_dentry) in affs_xrename() argument
462 bh_new = affs_bread(sb, d_inode(new_dentry)->i_ino); in affs_xrename()
481 affs_copy_name(AFFS_TAIL(sb, bh_old)->name, new_dentry); in affs_xrename()
502 struct inode *new_dir, struct dentry *new_dentry, in affs_rename2() argument
[all …]
/fs/afs/
Ddir.c41 struct inode *new_dir, struct dentry *new_dentry,
1219 struct dentry *new_dentry, in afs_vnode_new_inode() argument
1243 d_instantiate(new_dentry, inode); in afs_vnode_new_inode()
1806 struct inode *new_dir, struct dentry *new_dentry, in afs_rename() argument
1815 bool new_negative = d_is_negative(new_dentry); in afs_rename()
1833 new_dentry); in afs_rename()
1851 if (d_is_positive(new_dentry) && !d_is_dir(new_dentry)) { in afs_rename()
1855 if (!d_unhashed(new_dentry)) { in afs_rename()
1856 d_drop(new_dentry); in afs_rename()
1857 rehash = new_dentry; in afs_rename()
[all …]
/fs/nfs/
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()
Dnfstrace.h687 const struct dentry *new_dentry
690 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry),
697 __string(new_name, new_dentry->d_name.name)
705 __assign_str(new_name, new_dentry->d_name.name);
724 const struct dentry *new_dentry \
726 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
733 const struct dentry *new_dentry,
737 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error),
745 __string(new_name, new_dentry->d_name.name)
754 __assign_str(new_name, new_dentry->d_name.name);
[all …]
Ddir.c2039 struct inode *new_dir, struct dentry *new_dentry, in nfs_rename() argument
2043 struct inode *new_inode = d_inode(new_dentry); in nfs_rename()
2052 old_dentry, new_dentry, in nfs_rename()
2053 d_count(new_dentry)); in nfs_rename()
2055 trace_nfs_rename_enter(old_dir, old_dentry, new_dir, new_dentry); in nfs_rename()
2067 if (!d_unhashed(new_dentry)) { in nfs_rename()
2068 d_drop(new_dentry); in nfs_rename()
2069 rehash = new_dentry; in nfs_rename()
2072 if (d_count(new_dentry) > 2) { in nfs_rename()
2076 dentry = d_alloc(new_dentry->d_parent, in nfs_rename()
[all …]
/fs/orangefs/
Dnamei.c378 struct dentry *new_dentry, in orangefs_rename() argument
390 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename()
408 new_dentry->d_name.name, in orangefs_rename()
419 if (new_dentry->d_inode) in orangefs_rename()
420 new_dentry->d_inode->i_ctime = current_time(new_dentry->d_inode); in orangefs_rename()
/fs/hfs/
Ddir.c283 struct inode *new_dir, struct dentry *new_dentry, in hfs_rename() argument
292 if (d_really_is_positive(new_dentry)) { in hfs_rename()
293 res = hfs_remove(new_dir, new_dentry); in hfs_rename()
300 new_dir, &new_dentry->d_name); in hfs_rename()
304 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
/fs/jffs2/
Ddir.c756 struct inode *new_dir_i, struct dentry *new_dentry, in jffs2_rename() argument
773 if (d_really_is_positive(new_dentry)) { in jffs2_rename()
774 victim_f = JFFS2_INODE_INFO(d_inode(new_dentry)); in jffs2_rename()
775 if (d_is_dir(new_dentry)) { in jffs2_rename()
803 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename()
810 if (d_is_dir(new_dentry)) in jffs2_rename()
811 clear_nlink(d_inode(new_dentry)); in jffs2_rename()
813 drop_nlink(d_inode(new_dentry)); in jffs2_rename()
818 if (d_is_dir(new_dentry)) in jffs2_rename()
855 d_invalidate(new_dentry); in jffs2_rename()
/fs/
Dnamei.c4338 …unt *mnt, struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode **… in vfs_link2() argument
4347 error = may_create(mnt, dir, new_dentry); in vfs_link2()
4371 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link2()
4384 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link2()
4394 fsnotify_link(dir, inode, new_dentry); in vfs_link2()
4399 int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode … in vfs_link() argument
4401 return vfs_link2(NULL, old_dentry, dir, new_dentry, delegated_inode); in vfs_link()
4417 struct dentry *new_dentry; in do_linkat() local
4443 new_dentry = user_path_create(newdfd, newname, &new_path, in do_linkat()
4445 error = PTR_ERR(new_dentry); in do_linkat()
[all …]
/fs/minix/
Dnamei.c185 struct inode * new_dir, struct dentry *new_dentry, in minix_rename() argument
189 struct inode * new_inode = d_inode(new_dentry); in minix_rename()
219 new_de = minix_find_entry(new_dentry, &new_page); in minix_rename()
228 err = minix_add_link(new_dentry, old_inode); in minix_rename()
/fs/sysv/
Dnamei.c190 struct inode * new_dir, struct dentry * new_dentry, in sysv_rename() argument
194 struct inode * new_inode = d_inode(new_dentry); in sysv_rename()
224 new_de = sysv_find_entry(new_dentry, &new_page); in sysv_rename()
233 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
/fs/hfsplus/
Ddir.c532 struct inode *new_dir, struct dentry *new_dentry, in hfsplus_rename() argument
541 if (d_really_is_positive(new_dentry)) { in hfsplus_rename()
542 if (d_is_dir(new_dentry)) in hfsplus_rename()
543 res = hfsplus_rmdir(new_dir, new_dentry); in hfsplus_rename()
545 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename()
552 new_dir, &new_dentry->d_name); in hfsplus_rename()
554 new_dentry->d_fsdata = old_dentry->d_fsdata; in hfsplus_rename()
/fs/coda/
Ddir.c295 struct inode *new_dir, struct dentry *new_dentry, in coda_rename() argument
299 const char *new_name = new_dentry->d_name.name; in coda_rename()
301 int new_length = new_dentry->d_name.len; in coda_rename()
311 if (d_really_is_positive(new_dentry)) { in coda_rename()
312 if (d_is_dir(new_dentry)) { in coda_rename()
318 coda_flag_inode(d_inode(new_dentry), C_VATTR); in coda_rename()
/fs/f2fs/
Dnamei.c845 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename() argument
850 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename()
914 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename()
948 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename()
1043 struct inode *new_dir, struct dentry *new_dentry) in f2fs_cross_rename() argument
1047 struct inode *new_inode = d_inode(new_dentry); in f2fs_cross_rename()
1065 F2FS_I(new_dentry->d_inode)->i_projid))) in f2fs_cross_rename()
1084 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, &new_page); in f2fs_cross_rename()
1208 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename2() argument
1216 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in f2fs_rename2()
[all …]
/fs/ufs/
Dnamei.c244 struct inode *new_dir, struct dentry *new_dentry, in ufs_rename() argument
248 struct inode *new_inode = d_inode(new_dentry); in ufs_rename()
278 new_de = ufs_find_entry(new_dir, &new_dentry->d_name, &new_page); in ufs_rename()
287 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
/fs/ocfs2/
Dnamei.c1195 struct dentry *new_dentry, in ocfs2_rename() argument
1201 struct inode *new_inode = d_inode(new_dentry); in ocfs2_rename()
1227 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1229 new_dentry->d_name.len, new_dentry->d_name.name); in ocfs2_rename()
1377 status = ocfs2_find_files_on_disk(new_dentry->d_name.name, in ocfs2_rename()
1378 new_dentry->d_name.len, in ocfs2_rename()
1414 trace_ocfs2_rename_target_exists(new_dentry->d_name.len, in ocfs2_rename()
1415 new_dentry->d_name.name); in ocfs2_rename()
1437 status = ocfs2_remote_dentry_delete(new_dentry); in ocfs2_rename()
1461 BUG_ON(d_inode(new_dentry->d_parent) != new_dir); in ocfs2_rename()
[all …]
/fs/fat/
Dnamei_msdos.c430 struct dentry *new_dentry, int is_hid) in do_msdos_rename() argument
442 new_inode = d_inode(new_dentry); in do_msdos_rename()
597 struct inode *new_dir, struct dentry *new_dentry, in msdos_rename() argument
614 err = msdos_format_name(new_dentry->d_name.name, in msdos_rename()
615 new_dentry->d_name.len, new_msdos_name, in msdos_rename()
621 (new_dentry->d_name.name[0] == '.') && (new_msdos_name[0] != '.'); in msdos_rename()
624 new_dir, new_msdos_name, new_dentry, is_hid); in msdos_rename()
/fs/crypto/
Dhooks.c73 struct inode *new_dir, struct dentry *new_dentry, in __fscrypt_prepare_rename() argument
87 if ((old_dentry->d_flags | new_dentry->d_flags) & in __fscrypt_prepare_rename()
100 d_inode(new_dentry))) in __fscrypt_prepare_rename()
/fs/sdcardfs/
Dinode.c399 struct inode *new_dir, struct dentry *new_dentry, in sdcardfs_rename() argument
416 !check_caller_access_to_name(new_dir, &new_dentry->d_name)) { in sdcardfs_rename()
428 sdcardfs_get_lower_path(new_dentry, &lower_new_path); in sdcardfs_rename()
462 get_derived_permission_new(new_dentry->d_parent, old_dentry, &new_dentry->d_name); in sdcardfs_rename()
464 fixup_lower_ownership(old_dentry, new_dentry->d_name.name); in sdcardfs_rename()
471 sdcardfs_put_lower_path(new_dentry, &lower_new_path); in sdcardfs_rename()
/fs/ext2/
Dnamei.c313 struct inode * new_dir, struct dentry * new_dentry, in ext2_rename() argument
317 struct inode * new_inode = d_inode(new_dentry); in ext2_rename()
357 new_de = ext2_find_entry (new_dir, &new_dentry->d_name, &new_page); in ext2_rename()
366 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
/fs/bfs/
Ddir.c203 struct inode *new_dir, struct dentry *new_dentry, 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/ubifs/
Ddir.c1246 struct inode *new_dir, struct dentry *new_dentry, in do_rename() argument
1251 struct inode *new_inode = d_inode(new_dentry); in do_rename()
1277 new_dentry, new_dir->i_ino, flags); in do_rename()
1297 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_nm); in do_rename()
1487 struct inode *new_dir, struct dentry *new_dentry) in ubifs_xrename() argument
1494 struct inode *snd_inode = d_inode(new_dentry); in ubifs_xrename()
1505 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &snd_nm); in ubifs_xrename()
1542 struct inode *new_dir, struct dentry *new_dentry, in ubifs_rename() argument
1554 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ubifs_rename()
1560 return ubifs_xrename(old_dir, old_dentry, new_dir, new_dentry); in ubifs_rename()
[all …]
/fs/ecryptfs/
Dinode.c425 struct dentry *new_dentry) in ecryptfs_link() argument
435 lower_new_dentry = ecryptfs_dentry_to_lower(new_dentry); in ecryptfs_link()
443 rc = ecryptfs_interpose(lower_new_dentry, new_dentry, dir->i_sb); in ecryptfs_link()
450 i_size_write(d_inode(new_dentry), file_size_save); in ecryptfs_link()
583 struct inode *new_dir, struct dentry *new_dentry, in ecryptfs_rename() argument
598 lower_new_dir_dentry = ecryptfs_dentry_to_lower(new_dentry->d_parent); in ecryptfs_rename()
601 lower_new_dentry = ecryptfs_dentry_to_lower(new_dentry); in ecryptfs_rename()
603 target_inode = d_inode(new_dentry); in ecryptfs_rename()
/fs/omfs/
Ddir.c373 struct inode *new_dir, struct dentry *new_dentry, in omfs_rename() argument
376 struct inode *new_inode = d_inode(new_dentry); in omfs_rename()
385 err = omfs_remove(new_dir, new_dentry); in omfs_rename()
397 err = omfs_add_link(new_dentry, old_inode); in omfs_rename()
/fs/9p/
Dvfs_inode.c952 struct inode *new_dir, struct dentry *new_dentry, in v9fs_vfs_rename() argument
970 new_inode = d_inode(new_dentry); in v9fs_vfs_rename()
982 newdirfid = clone_fid(v9fs_parent_fid(new_dentry)); in v9fs_vfs_rename()
991 newdirfid, new_dentry->d_name.name); in v9fs_vfs_rename()
994 new_dentry->d_name.name); in v9fs_vfs_rename()
998 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename()
1009 wstat.name = new_dentry->d_name.name; in v9fs_vfs_rename()
1030 d_move(old_dentry, new_dentry); in v9fs_vfs_rename()

12