Home
last modified time | relevance | path

Searched refs:old_dentry (Results 1 – 25 of 61) sorted by relevance

123

/fs/nfs/
Dunlink.c268 struct dentry *old_dentry = data->old_dentry; in nfs_async_rename_done() local
270 trace_nfs_sillyrename_rename(old_dir, old_dentry, in nfs_async_rename_done()
290 if (d_really_is_positive(data->old_dentry)) in nfs_async_rename_release()
291 nfs_mark_for_revalidate(d_inode(data->old_dentry)); in nfs_async_rename_release()
306 dput(data->old_dentry); in nfs_async_rename_release()
339 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename() argument
373 data->old_dentry = dget(old_dentry); in nfs_async_rename()
381 data->args.old_name = &old_dentry->d_name; in nfs_async_rename()
391 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); in nfs_async_rename()
403 struct dentry *dentry = data->old_dentry; in nfs_complete_sillyrename()
Dnfstrace.h797 const struct dentry *old_dentry,
802 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry),
808 __string(old_name, old_dentry->d_name.name)
816 __assign_str(old_name, old_dentry->d_name.name);
834 const struct dentry *old_dentry, \
838 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
843 const struct dentry *old_dentry,
849 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error),
855 __string(old_name, old_dentry->d_name.name)
865 __assign_str(old_name, old_dentry->d_name.name);
[all …]
/fs/jffs2/
Ddir.c247 static int jffs2_link (struct dentry *old_dentry, struct inode *dir_i, struct dentry *dentry) in jffs2_link() argument
249 struct jffs2_sb_info *c = JFFS2_SB_INFO(old_dentry->d_sb); in jffs2_link()
250 struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); in jffs2_link()
260 if (d_is_dir(old_dentry)) in jffs2_link()
264 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_link()
272 set_nlink(d_inode(old_dentry), ++f->inocache->pino_nlink); in jffs2_link()
274 d_instantiate(dentry, d_inode(old_dentry)); in jffs2_link()
276 ihold(d_inode(old_dentry)); in jffs2_link()
770 struct inode *old_dir_i, struct dentry *old_dentry, in jffs2_rename() argument
812 type = (d_inode(old_dentry)->i_mode & S_IFMT) >> 12; in jffs2_rename()
[all …]
/fs/affs/
Dnamei.c394 affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in affs_link() argument
396 struct inode *inode = d_inode(old_dentry); in affs_link()
405 affs_rename(struct inode *old_dir, struct dentry *old_dentry, in affs_rename() argument
414 affs_nofilenametruncate(old_dentry)); in affs_rename()
426 bh = affs_bread(sb, d_inode(old_dentry)->i_ino); in affs_rename()
452 affs_xrename(struct inode *old_dir, struct dentry *old_dentry, in affs_xrename() argument
461 bh_old = affs_bread(sb, d_inode(old_dentry)->i_ino); in affs_xrename()
493 affs_copy_name(AFFS_TAIL(sb, bh_new)->name, old_dentry); in affs_xrename()
507 struct dentry *old_dentry, struct inode *new_dir, in affs_rename2() argument
515 old_dir->i_ino, old_dentry, new_dir->i_ino, new_dentry); in affs_rename2()
[all …]
/fs/debugfs/
Dinode.c823 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, in debugfs_rename() argument
834 if (IS_ERR_OR_NULL(old_dentry)) in debugfs_rename()
835 return old_dentry; in debugfs_rename()
842 if (d_really_is_negative(old_dentry) || old_dentry == trap || in debugfs_rename()
843 d_mountpoint(old_dentry)) in debugfs_rename()
850 take_dentry_name_snapshot(&old_name, old_dentry); in debugfs_rename()
852 error = simple_rename(&nop_mnt_idmap, d_inode(old_dir), old_dentry, in debugfs_rename()
858 d_move(old_dentry, dentry); in debugfs_rename()
860 d_is_dir(old_dentry), in debugfs_rename()
861 NULL, old_dentry); in debugfs_rename()
[all …]
/fs/f2fs/
Dnamei.c398 static int f2fs_link(struct dentry *old_dentry, struct inode *dir, in f2fs_link() argument
401 struct inode *inode = d_inode(old_dentry); in f2fs_link()
410 err = fscrypt_prepare_link(old_dentry, dir, dentry); in f2fs_link()
416 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_link()
957 struct dentry *old_dentry, struct inode *new_dir, in f2fs_rename() argument
961 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename()
979 F2FS_I(old_dentry->d_inode)->i_projid))) in f2fs_rename()
999 err = f2fs_setup_filename(old_dir, &old_dentry->d_name, in f2fs_rename()
1024 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_page); in f2fs_rename()
1108 err = f2fs_add_link(old_dentry, whiteout); in f2fs_rename()
[all …]
/fs/
Dlibfs.c323 struct dentry *old_dentry, in simple_offset_rename_exchange() argument
329 u32 old_index = dentry2offset(old_dentry); in simple_offset_rename_exchange()
333 simple_offset_remove(old_ctx, old_dentry); in simple_offset_rename_exchange()
336 ret = simple_offset_add(new_ctx, old_dentry); in simple_offset_rename_exchange()
342 simple_offset_remove(new_ctx, old_dentry); in simple_offset_rename_exchange()
346 ret = simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry); in simple_offset_rename_exchange()
348 simple_offset_remove(new_ctx, old_dentry); in simple_offset_rename_exchange()
355 offset_set(old_dentry, old_index); in simple_offset_rename_exchange()
356 xa_store(&old_ctx->xa, old_index, old_dentry, GFP_KERNEL); in simple_offset_rename_exchange()
646 int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry) in simple_link() argument
[all …]
Dnamei.c4551 int vfs_link(struct dentry *old_dentry, struct mnt_idmap *idmap, in vfs_link() argument
4555 struct inode *inode = old_dentry->d_inode; in vfs_link()
4586 error = security_inode_link(old_dentry, dir, new_dentry); in vfs_link()
4599 error = dir->i_op->link(old_dentry, dir, new_dentry); in vfs_link()
4757 struct dentry *old_dentry = rd->old_dentry; in vfs_rename() local
4761 bool is_dir = d_is_dir(old_dentry); in vfs_rename()
4762 struct inode *source = old_dentry->d_inode; in vfs_rename()
4772 error = may_delete(rd->old_mnt_idmap, old_dir, old_dentry, is_dir); in vfs_rename()
4813 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry, in vfs_rename()
4818 take_dentry_name_snapshot(&old_name, old_dentry); in vfs_rename()
[all …]
/fs/sysv/
Dnamei.c101 static int sysv_link(struct dentry * old_dentry, struct inode * dir, in sysv_link() argument
104 struct inode *inode = d_inode(old_dentry); in sysv_link()
192 struct dentry *old_dentry, struct inode *new_dir, in sysv_rename() argument
195 struct inode * old_inode = d_inode(old_dentry); in sysv_rename()
206 old_de = sysv_find_entry(old_dentry, &old_page); in sysv_rename()
/fs/minix/
Dnamei.c96 static int minix_link(struct dentry * old_dentry, struct inode * dir, in minix_link() argument
99 struct inode *inode = d_inode(old_dentry); in minix_link()
178 struct inode *old_dir, struct dentry *old_dentry, in minix_rename() argument
182 struct inode * old_inode = d_inode(old_dentry); in minix_rename()
193 old_de = minix_find_entry(old_dentry, &old_page); in minix_rename()
/fs/ubifs/
Ddir.c720 static int ubifs_link(struct dentry *old_dentry, struct inode *dir, in ubifs_link() argument
724 struct inode *inode = d_inode(old_dentry); in ubifs_link()
743 err = fscrypt_prepare_link(old_dentry, dir, dentry); in ubifs_link()
1284 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, in do_rename() argument
1289 struct inode *old_inode = d_inode(old_dentry); in do_rename()
1316 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename()
1335 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm); in do_rename()
1376 whiteout = create_whiteout(old_dir, old_dentry); in do_rename()
1417 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in do_rename()
1547 static int ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry, in ubifs_xrename() argument
[all …]
/fs/ufs/
Dnamei.c150 static int ufs_link (struct dentry * old_dentry, struct inode * dir, in ufs_link() argument
153 struct inode *inode = d_inode(old_dentry); in ufs_link()
247 struct dentry *old_dentry, struct inode *new_dir, in ufs_rename() argument
250 struct inode *old_inode = d_inode(old_dentry); in ufs_rename()
261 old_de = ufs_find_entry(old_dir, &old_dentry->d_name, &old_page); in ufs_rename()
/fs/ext2/
Dnamei.c204 static int ext2_link (struct dentry * old_dentry, struct inode * dir, in ext2_link() argument
207 struct inode *inode = d_inode(old_dentry); in ext2_link()
318 struct inode * old_dir, struct dentry * old_dentry, in ext2_rename() argument
322 struct inode * old_inode = d_inode(old_dentry); in ext2_rename()
341 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_page); in ext2_rename()
/fs/ocfs2/
Dnamei.c679 static int ocfs2_link(struct dentry *old_dentry, in ocfs2_link() argument
684 struct inode *inode = d_inode(old_dentry); in ocfs2_link()
685 struct inode *old_dir = d_inode(old_dentry->d_parent); in ocfs2_link()
697 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_link()
735 err = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_link()
736 old_dentry->d_name.len, &old_de_ino); in ocfs2_link()
1202 struct dentry *old_dentry, in ocfs2_rename() argument
1209 struct inode *old_inode = d_inode(old_dentry); in ocfs2_rename()
1236 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1237 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_rename()
[all …]
/fs/hfs/
Ddir.c284 struct dentry *old_dentry, struct inode *new_dir, in hfs_rename() argument
299 res = hfs_cat_move(d_inode(old_dentry)->i_ino, in hfs_rename()
300 old_dir, &old_dentry->d_name, in hfs_rename()
304 (btree_key *)&HFS_I(d_inode(old_dentry))->cat_key, in hfs_rename()
/fs/9p/
Dvfs_inode.c898 struct dentry *old_dentry, struct inode *new_dir, in v9fs_vfs_rename() argument
914 old_inode = d_inode(old_dentry); in v9fs_vfs_rename()
917 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_rename()
921 dfid = v9fs_parent_fid(old_dentry); in v9fs_vfs_rename()
943 retval = p9_client_renameat(olddirfid, old_dentry->d_name.name, in v9fs_vfs_rename()
951 if (old_dentry->d_parent != new_dentry->d_parent) { in v9fs_vfs_rename()
983 d_move(old_dentry, new_dentry); in v9fs_vfs_rename()
1327 v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link() argument
1335 dir->i_ino, dentry, old_dentry); in v9fs_vfs_link()
1337 oldfid = v9fs_fid_clone(old_dentry); in v9fs_vfs_link()
[all …]
Dvfs_inode_dotl.c782 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, in v9fs_vfs_link_dotl() argument
790 dir->i_ino, old_dentry, dentry); in v9fs_vfs_link_dotl()
797 oldfid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
817 fid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
821 v9fs_refresh_inode_dotl(fid, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
824 ihold(d_inode(old_dentry)); in v9fs_vfs_link_dotl()
825 d_instantiate(dentry, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
/fs/nilfs2/
Dnamei.c177 static int nilfs_link(struct dentry *old_dentry, struct inode *dir, in nilfs_link() argument
180 struct inode *inode = d_inode(old_dentry); in nilfs_link()
344 struct inode *old_dir, struct dentry *old_dentry, in nilfs_rename() argument
348 struct inode *old_inode = d_inode(old_dentry); in nilfs_rename()
365 old_de = nilfs_find_entry(old_dir, &old_dentry->d_name, &old_page); in nilfs_rename()
/fs/fat/
Dnamei_msdos.c429 struct dentry *old_dentry, in do_msdos_rename() argument
442 old_inode = d_inode(old_dentry); in do_msdos_rename()
598 struct inode *old_dir, struct dentry *old_dentry, in msdos_rename() argument
611 err = msdos_format_name(old_dentry->d_name.name, in msdos_rename()
612 old_dentry->d_name.len, old_msdos_name, in msdos_rename()
625 err = do_msdos_rename(old_dir, old_msdos_name, old_dentry, in msdos_rename()
Dnamei_vfat.c931 static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry, in vfat_rename() argument
944 old_inode = d_inode(old_dentry); in vfat_rename()
947 err = vfat_find(old_dir, &old_dentry->d_name, &old_sinfo); in vfat_rename()
1060 static int vfat_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, in vfat_rename_exchange() argument
1071 old_inode = d_inode(old_dentry); in vfat_rename_exchange()
1162 struct dentry *old_dentry, struct inode *new_dir, in vfat_rename2() argument
1169 return vfat_rename_exchange(old_dir, old_dentry, in vfat_rename2()
1174 return vfat_rename(old_dir, old_dentry, new_dir, new_dentry); in vfat_rename2()
/fs/ecryptfs/
Dinode.c432 static int ecryptfs_link(struct dentry *old_dentry, struct inode *dir, in ecryptfs_link() argument
441 file_size_save = i_size_read(d_inode(old_dentry)); in ecryptfs_link()
442 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_link()
454 set_nlink(d_inode(old_dentry), in ecryptfs_link()
455 ecryptfs_inode_to_lower(d_inode(old_dentry))->i_nlink); in ecryptfs_link()
586 struct dentry *old_dentry, struct inode *new_dir, in ecryptfs_rename() argument
601 lower_old_dir_dentry = ecryptfs_dentry_to_lower(old_dentry->d_parent); in ecryptfs_rename()
604 lower_old_dentry = ecryptfs_dentry_to_lower(old_dentry); in ecryptfs_rename()
629 rd.old_dentry = lower_old_dentry; in ecryptfs_rename()
/fs/orangefs/
Dnamei.c380 struct dentry *old_dentry, in orangefs_rename() argument
394 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename()
409 old_dentry->d_name.name, in orangefs_rename()
417 get_interruptible_flag(old_dentry->d_inode)); in orangefs_rename()
/fs/crypto/
Dhooks.c69 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, in __fscrypt_prepare_rename() argument
73 if (fscrypt_is_nokey_name(old_dentry) || in __fscrypt_prepare_rename()
84 d_inode(old_dentry))) in __fscrypt_prepare_rename()
/fs/ceph/
Ddir.c1143 static int ceph_link(struct dentry *old_dentry, struct inode *dir, in ceph_link() argument
1160 err = fscrypt_prepare_link(old_dentry, dir, dentry); in ceph_link()
1165 dir, ceph_vinop(dir), old_dentry, old_dentry, dentry, dentry); in ceph_link()
1173 req->r_old_dentry = dget(old_dentry); in ceph_link()
1178 if (old_dentry->d_flags & DCACHE_DISCONNECTED) in ceph_link()
1179 req->r_ino2 = ceph_vino(d_inode(old_dentry)); in ceph_link()
1191 ihold(d_inode(old_dentry)); in ceph_link()
1192 d_instantiate(dentry, d_inode(old_dentry)); in ceph_link()
1383 struct dentry *old_dentry, struct inode *new_dir, in ceph_rename() argument
1411 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ceph_rename()
[all …]
/fs/reiserfs/
Dnamei.c1203 static int reiserfs_link(struct dentry *old_dentry, struct inode *dir, in reiserfs_link() argument
1207 struct inode *inode = d_inode(old_dentry); in reiserfs_link()
1314 struct inode *old_dir, struct dentry *old_dentry, in reiserfs_rename() argument
1354 old_inode = d_inode(old_dentry); in reiserfs_rename()
1364 reiserfs_find_entry(old_dir, old_dentry->d_name.name, in reiserfs_rename()
1365 old_dentry->d_name.len, &old_entry_path, in reiserfs_rename()
1533 !entry_points_to_object(old_dentry->d_name.name, in reiserfs_rename()
1534 old_dentry->d_name.len, in reiserfs_rename()
1586 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in reiserfs_rename()

123