/fs/orangefs/ |
D | namei.c | 410 struct dentry *new_dentry, in orangefs_rename() argument 421 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename() 423 ORANGEFS_I(new_dentry->d_parent->d_inode)->getattr_time = jiffies - 1; in orangefs_rename() 436 new_dentry->d_name.name, in orangefs_rename() 447 if (new_dentry->d_inode) in orangefs_rename() 448 new_dentry->d_inode->i_ctime = current_time(new_dentry->d_inode); in orangefs_rename()
|
/fs/nfs/ |
D | nfstrace.h | 589 const struct dentry *new_dentry 592 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry), 599 __string(new_name, new_dentry->d_name.name) 607 __assign_str(new_name, new_dentry->d_name.name); 626 const struct dentry *new_dentry \ 628 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry)) 635 const struct dentry *new_dentry, 639 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error), 647 __string(new_name, new_dentry->d_name.name) 656 __assign_str(new_name, new_dentry->d_name.name); [all …]
|
D | unlink.c | 269 new_dir, data->new_dentry, task->tk_status); in nfs_async_rename_done() 292 dput(data->new_dentry); in nfs_async_rename_release() 323 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument 358 data->new_dentry = dget(new_dentry); in nfs_async_rename() 367 data->args.new_name = &new_dentry->d_name; in nfs_async_rename()
|
D | dir.c | 2024 struct inode *new_dir, struct dentry *new_dentry, in nfs_rename() argument 2028 struct inode *new_inode = d_inode(new_dentry); in nfs_rename() 2037 old_dentry, new_dentry, in nfs_rename() 2038 d_count(new_dentry)); in nfs_rename() 2040 trace_nfs_rename_enter(old_dir, old_dentry, new_dir, new_dentry); in nfs_rename() 2052 if (!d_unhashed(new_dentry)) { in nfs_rename() 2053 d_drop(new_dentry); in nfs_rename() 2054 rehash = new_dentry; in nfs_rename() 2057 if (d_count(new_dentry) > 2) { in nfs_rename() 2061 dentry = d_alloc(new_dentry->d_parent, in nfs_rename() [all …]
|
/fs/affs/ |
D | namei.c | 417 struct inode *new_dir, struct dentry *new_dentry, in affs_rename() argument 428 old_dir->i_ino, old_dentry, new_dir->i_ino, new_dentry); in affs_rename() 430 retval = affs_check_name(new_dentry->d_name.name, in affs_rename() 431 new_dentry->d_name.len, in affs_rename() 438 if (d_really_is_positive(new_dentry)) { in affs_rename() 439 retval = affs_remove_header(new_dentry); in affs_rename() 456 affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry); in affs_rename()
|
/fs/sdcardfs/ |
D | inode.c | 125 struct dentry *new_dentry) 138 sdcardfs_get_lower_path(new_dentry, &lower_new_path); 148 err = sdcardfs_interpose(new_dentry, dir->i_sb, &lower_new_path); 155 i_size_write(d_inode(new_dentry), file_size_save); 159 sdcardfs_put_lower_path(new_dentry, &lower_new_path); 469 struct inode *new_dir, struct dentry *new_dentry, in sdcardfs_rename() argument 486 !check_caller_access_to_name(new_dir, &new_dentry->d_name)) { in sdcardfs_rename() 495 sdcardfs_get_lower_path(new_dentry, &lower_new_path); in sdcardfs_rename() 529 get_derived_permission_new(new_dentry->d_parent, old_dentry, &new_dentry->d_name); in sdcardfs_rename() 531 fixup_lower_ownership(old_dentry, new_dentry->d_name.name); in sdcardfs_rename() [all …]
|
/fs/hfs/ |
D | dir.c | 289 struct inode *new_dir, struct dentry *new_dentry, in hfs_rename() argument 298 if (d_really_is_positive(new_dentry)) { in hfs_rename() 299 res = hfs_remove(new_dir, new_dentry); in hfs_rename() 306 new_dir, &new_dentry->d_name); in hfs_rename() 310 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
|
/fs/ |
D | namei.c | 4213 …unt *mnt, struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode **… in vfs_link2() argument 4222 error = may_create(mnt, dir, new_dentry); in vfs_link2() 4246 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link2() 4259 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link2() 4269 fsnotify_link(dir, inode, new_dentry); in vfs_link2() 4274 int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry, struct inode … in vfs_link() argument 4276 return vfs_link2(NULL, old_dentry, dir, new_dentry, delegated_inode); in vfs_link() 4292 struct dentry *new_dentry; in SYSCALL_DEFINE5() local 4318 new_dentry = user_path_create(newdfd, newname, &new_path, in SYSCALL_DEFINE5() 4320 error = PTR_ERR(new_dentry); in SYSCALL_DEFINE5() [all …]
|
/fs/jffs2/ |
D | dir.c | 760 struct inode *new_dir_i, struct dentry *new_dentry, in jffs2_rename() argument 777 if (d_really_is_positive(new_dentry)) { in jffs2_rename() 778 victim_f = JFFS2_INODE_INFO(d_inode(new_dentry)); in jffs2_rename() 779 if (d_is_dir(new_dentry)) { in jffs2_rename() 807 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename() 814 if (d_is_dir(new_dentry)) in jffs2_rename() 815 clear_nlink(d_inode(new_dentry)); in jffs2_rename() 817 drop_nlink(d_inode(new_dentry)); in jffs2_rename() 822 if (d_is_dir(new_dentry)) in jffs2_rename() 859 d_invalidate(new_dentry); in jffs2_rename()
|
/fs/bfs/ |
D | dir.c | 210 struct inode *new_dir, struct dentry *new_dentry, in bfs_rename() argument 238 new_inode = d_inode(new_dentry); in bfs_rename() 240 new_dentry->d_name.name, in bfs_rename() 241 new_dentry->d_name.len, &new_de); in bfs_rename() 249 new_dentry->d_name.name, in bfs_rename() 250 new_dentry->d_name.len, in bfs_rename()
|
/fs/logfs/ |
D | dir.c | 587 struct inode *new_dir, struct dentry *new_dentry) in logfs_rename_cross() argument 611 err = logfs_write_dir(new_dir, new_dentry, d_inode(old_dentry)); in logfs_rename_cross() 659 struct inode *new_dir, struct dentry *new_dentry) in logfs_rename_target() argument 663 struct inode *new_inode = d_inode(new_dentry); in logfs_rename_target() 693 err = logfs_replace_inode(new_dir, new_dentry, &dd, old_inode); in logfs_rename_target() 721 struct inode *new_dir, struct dentry *new_dentry, in logfs_rename() argument 727 if (d_really_is_positive(new_dentry)) in logfs_rename() 729 new_dir, new_dentry); in logfs_rename() 730 return logfs_rename_cross(old_dir, old_dentry, new_dir, new_dentry); in logfs_rename()
|
/fs/minix/ |
D | namei.c | 188 struct inode * new_dir, struct dentry *new_dentry, in minix_rename() argument 192 struct inode * new_inode = d_inode(new_dentry); in minix_rename() 222 new_de = minix_find_entry(new_dentry, &new_page); in minix_rename() 231 err = minix_add_link(new_dentry, old_inode); in minix_rename()
|
/fs/sysv/ |
D | namei.c | 209 struct inode * new_dir, struct dentry * new_dentry, in sysv_rename() argument 213 struct inode * new_inode = d_inode(new_dentry); in sysv_rename() 243 new_de = sysv_find_entry(new_dentry, &new_page); in sysv_rename() 252 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
|
/fs/hfsplus/ |
D | dir.c | 533 struct inode *new_dir, struct dentry *new_dentry, in hfsplus_rename() argument 542 if (d_really_is_positive(new_dentry)) { in hfsplus_rename() 543 if (d_is_dir(new_dentry)) in hfsplus_rename() 544 res = hfsplus_rmdir(new_dir, new_dentry); in hfsplus_rename() 546 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename() 553 new_dir, &new_dentry->d_name); in hfsplus_rename() 555 new_dentry->d_fsdata = old_dentry->d_fsdata; in hfsplus_rename()
|
/fs/coda/ |
D | dir.c | 294 struct inode *new_dir, struct dentry *new_dentry, in coda_rename() argument 298 const char *new_name = new_dentry->d_name.name; in coda_rename() 300 int new_length = new_dentry->d_name.len; in coda_rename() 310 if (d_really_is_positive(new_dentry)) { in coda_rename() 311 if (d_is_dir(new_dentry)) { in coda_rename() 317 coda_flag_inode(d_inode(new_dentry), C_VATTR); in coda_rename()
|
/fs/ncpfs/ |
D | dir.c | 252 struct inode *new_dir, struct dentry* new_dentry, char *_new_name) in ncp_force_rename() argument 270 if (new_dentry && d_really_is_positive(new_dentry)) { in ncp_force_rename() 271 new_nwattr = NCP_FINFO(d_inode(new_dentry))->nwattr; in ncp_force_rename() 1108 struct inode *new_dir, struct dentry *new_dentry, in ncp_rename() argument 1119 ncp_dbg(1, "%pd2 to %pd2\n", old_dentry, new_dentry); in ncp_rename() 1122 ncp_age_dentry(server, new_dentry); in ncp_rename() 1133 new_dentry->d_name.name, new_dentry->d_name.len, in ncp_rename() 1144 new_dir, new_dentry, __new_name); in ncp_rename() 1150 old_dentry, new_dentry); in ncp_rename() 1152 ncp_d_prune(new_dentry); in ncp_rename()
|
/fs/f2fs/ |
D | namei.c | 814 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename() argument 819 struct inode *new_inode = d_inode(new_dentry); in f2fs_rename() 880 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename() 914 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename() 1002 struct inode *new_dir, struct dentry *new_dentry) in f2fs_cross_rename() argument 1006 struct inode *new_inode = d_inode(new_dentry); in f2fs_cross_rename() 1022 F2FS_I(new_dentry->d_inode)->i_projid))) in f2fs_cross_rename() 1040 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, &new_page); in f2fs_cross_rename() 1154 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename2() argument 1162 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in f2fs_rename2() [all …]
|
/fs/ufs/ |
D | namei.c | 248 struct inode *new_dir, struct dentry *new_dentry, in ufs_rename() argument 252 struct inode *new_inode = d_inode(new_dentry); in ufs_rename() 282 new_de = ufs_find_entry(new_dir, &new_dentry->d_name, &new_page); in ufs_rename() 291 err = ufs_add_link(new_dentry, old_inode); in ufs_rename()
|
/fs/exofs/ |
D | namei.c | 230 struct inode *new_dir, struct dentry *new_dentry, in exofs_rename() argument 234 struct inode *new_inode = d_inode(new_dentry); in exofs_rename() 264 new_de = exofs_find_entry(new_dir, new_dentry, &new_page); in exofs_rename() 275 err = exofs_add_link(new_dentry, old_inode); in exofs_rename()
|
/fs/ocfs2/ |
D | namei.c | 1206 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() 1388 status = ocfs2_find_files_on_disk(new_dentry->d_name.name, in ocfs2_rename() 1389 new_dentry->d_name.len, in ocfs2_rename() 1425 trace_ocfs2_rename_target_exists(new_dentry->d_name.len, in ocfs2_rename() 1426 new_dentry->d_name.name); in ocfs2_rename() 1448 status = ocfs2_remote_dentry_delete(new_dentry); in ocfs2_rename() 1472 BUG_ON(d_inode(new_dentry->d_parent) != new_dir); in ocfs2_rename() [all …]
|
/fs/fat/ |
D | namei_msdos.c | 432 struct dentry *new_dentry, int is_hid) in do_msdos_rename() argument 444 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/ubifs/ |
D | dir.c | 1077 struct inode *new_dir, struct dentry *new_dentry, in do_rename() argument 1082 struct inode *new_inode = d_inode(new_dentry); in do_rename() 1089 int new_sz = CALC_DENT_SIZE(new_dentry->d_name.len); in do_rename() 1109 new_dentry, new_dir->i_ino, flags); in do_rename() 1246 err = ubifs_jnl_rename(c, old_dir, old_dentry, new_dir, new_dentry, whiteout, in do_rename() 1295 struct inode *new_dir, struct dentry *new_dentry) in ubifs_xrename() argument 1302 struct inode *snd_inode = d_inode(new_dentry); in ubifs_xrename() 1327 err = ubifs_jnl_xrename(c, old_dir, old_dentry, new_dir, new_dentry, in ubifs_xrename() 1337 struct inode *new_dir, struct dentry *new_dentry, in ubifs_rename() argument 1347 return ubifs_xrename(old_dir, old_dentry, new_dir, new_dentry); in ubifs_rename() [all …]
|
D | journal.c | 1068 const struct dentry *new_dentry, in ubifs_jnl_rename() argument 1076 const struct inode *new_inode = d_inode(new_dentry); in ubifs_jnl_rename() 1083 old_dentry, old_dir->i_ino, new_dentry, new_dir->i_ino); in ubifs_jnl_rename() 1089 dlen1 = UBIFS_DENT_NODE_SZ + new_dentry->d_name.len + 1; in ubifs_jnl_rename() 1116 dent_key_init_flash(c, &dent->key, new_dir->i_ino, &new_dentry->d_name); in ubifs_jnl_rename() 1119 dent->nlen = cpu_to_le16(new_dentry->d_name.len); in ubifs_jnl_rename() 1120 memcpy(dent->name, new_dentry->d_name.name, new_dentry->d_name.len); in ubifs_jnl_rename() 1121 dent->name[new_dentry->d_name.len] = '\0'; in ubifs_jnl_rename() 1181 dent_key_init(c, &key, new_dir->i_ino, &new_dentry->d_name); in ubifs_jnl_rename() 1182 err = ubifs_tnc_add_nm(c, &key, lnum, offs, dlen1, &new_dentry->d_name); in ubifs_jnl_rename()
|
/fs/ext2/ |
D | namei.c | 331 struct inode * new_dir, struct dentry * new_dentry, in ext2_rename() argument 335 struct inode * new_inode = d_inode(new_dentry); in ext2_rename() 375 new_de = ext2_find_entry (new_dir, &new_dentry->d_name, &new_page); in ext2_rename() 384 err = ext2_add_link(new_dentry, old_inode); in ext2_rename()
|
/fs/overlayfs/ |
D | overlayfs.h | 47 struct dentry *new_dentry, bool debug) in ovl_do_link() argument 49 int err = vfs_link(old_dentry, dir, new_dentry, NULL); in ovl_do_link() 52 old_dentry, new_dentry, err); in ovl_do_link()
|