Home
last modified time | relevance | path

Searched refs:old_dir (Results 1 – 25 of 28) sorted by relevance

12

/linux/include/linux/
H A Dfscrypt.h455 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry,
753 static inline int __fscrypt_prepare_rename(struct inode *old_dir, in __fscrypt_prepare_rename() argument
939 static inline int fscrypt_prepare_rename(struct inode *old_dir, in fscrypt_prepare_rename() argument
945 if (IS_ENCRYPTED(old_dir) || IS_ENCRYPTED(new_dir)) in fscrypt_prepare_rename()
946 return __fscrypt_prepare_rename(old_dir, old_dentry, in fscrypt_prepare_rename()
H A Dfs.h3276 void simple_rename_timestamp(struct inode *old_dir, struct dentry *old_dentry,
3278 extern int simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry,
3330 void simple_offset_rename(struct inode *old_dir, struct dentry *old_dentry,
3332 int simple_offset_rename_exchange(struct inode *old_dir,
/linux/fs/ocfs2/
H A Ddcache.h38 struct inode *old_dir, struct inode *new_dir);
/linux/fs/ntfs/
H A Dnamei.c1255 static int ntfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ntfs_rename() argument
1262 struct super_block *sb = old_dir->i_sb; in ntfs_rename()
1269 struct ntfs_inode *old_dir_ni = NTFS_I(old_dir), *new_dir_ni = NTFS_I(new_dir); in ntfs_rename()
1293 old_name_len = ntfs_nlstoucs(NTFS_I(old_dir)->vol, old_dentry->d_name.name, in ntfs_rename()
1308 if (old_dir != new_dir) in ntfs_rename()
1319 if (old_dir == new_dir) { in ntfs_rename()
1331 (old_dir != new_dir && NInoBeingDeleted(new_dir_ni))) { in ntfs_rename()
1375 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in ntfs_rename()
1377 mark_inode_dirty(old_dir); in ntfs_rename()
1378 if (old_dir != new_dir) in ntfs_rename()
[all …]
/linux/fs/ceph/
H A Ddir.c1475 static int ceph_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ceph_rename() argument
1479 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(old_dir->i_sb); in ceph_rename()
1488 if (ceph_snap(old_dir) != ceph_snap(new_dir)) in ceph_rename()
1490 if (ceph_snap(old_dir) != CEPH_NOSNAP) { in ceph_rename()
1491 if (old_dir == new_dir && ceph_snap(old_dir) == CEPH_SNAPDIR) in ceph_rename()
1497 if ((old_dir != new_dir) && in ceph_rename()
1498 (!ceph_quota_is_same_realm(old_dir, new_dir))) in ceph_rename()
1505 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ceph_rename()
1511 ceph_vinop(old_dir), old_dentry, ceph_vinop(new_dir), in ceph_rename()
1516 ihold(old_dir); in ceph_rename()
[all …]
H A Dmds_client.c3989 struct inode *old_dir = req->r_old_dentry_dir; in ceph_invalidate_dir_request() local
3993 dir, old_dir); in ceph_invalidate_dir_request()
3996 if (old_dir) in ceph_invalidate_dir_request()
3997 ceph_dir_clear_complete(old_dir); in ceph_invalidate_dir_request()
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_vfs_accept.c88 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, in BPF_PROG() argument
H A Dverifier_vfs_reject.c164 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, in BPF_PROG() argument
H A Dlocal_storage.c102 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, in BPF_PROG()
108 BPF_PROG(inode_rename,struct inode * old_dir,struct dentry * old_dentry,struct inode * new_dir,struct dentry * new_dentry,unsigned int flags) BPF_PROG() argument
/linux/fs/btrfs/
H A Dinode.c8273 static int btrfs_rename_exchange(struct inode *old_dir, in btrfs_rename_exchange() argument
8278 struct btrfs_fs_info *fs_info = inode_to_fs_info(old_dir); in btrfs_rename_exchange()
8281 struct btrfs_root *root = BTRFS_I(old_dir)->root; in btrfs_rename_exchange()
8308 ret = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_fname); in btrfs_rename_exchange()
8336 trans_num_items = (old_dir == new_dir ? 9 : 10); in btrfs_rename_exchange()
8376 ret = btrfs_set_inode_index(BTRFS_I(old_dir), &new_idx); in btrfs_rename_exchange()
8402 btrfs_ino(BTRFS_I(old_dir)), in btrfs_rename_exchange()
8412 inode_inc_iversion(old_dir); in btrfs_rename_exchange()
8416 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in btrfs_rename_exchange()
8444 btrfs_record_unlink_dir(trans, BTRFS_I(old_dir), in btrfs_rename_exchange()
[all …]
H A Dtree-log.c8046 struct dentry *old_dentry, struct btrfs_inode *old_dir, in btrfs_log_new_name() argument
8055 trace_btrfs_log_new_name_enter(trans, inode, old_dir, old_dir_index); in btrfs_log_new_name()
8078 if (!old_dir) in btrfs_log_new_name()
8085 ret = inode_logged(trans, old_dir, NULL); in btrfs_log_new_name()
8107 if (old_dir && old_dir->logged_trans == trans->transid) { in btrfs_log_new_name()
8108 struct btrfs_root *log = old_dir->root->log_root; in btrfs_log_new_name()
8115 ret = fscrypt_setup_filename(&old_dir->vfs_inode, in btrfs_log_new_name()
8157 mutex_lock(&old_dir->log_mutex); in btrfs_log_new_name()
8158 ret = del_logged_dentry(trans, log, path, btrfs_ino(old_dir), in btrfs_log_new_name()
8167 btrfs_ino(old_dir), in btrfs_log_new_name()
[all …]
/linux/fs/
H A Dnamei.c6078 struct inode *old_dir = d_inode(rd->old_parent); in vfs_rename() local
6095 error = may_delete_dentry(rd->mnt_idmap, old_dir, old_dentry, is_dir); in vfs_rename()
6114 if (!old_dir->i_op->rename) in vfs_rename()
6121 if (new_dir != old_dir) { in vfs_rename()
6136 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry, in vfs_rename()
6156 lock_old_subdir = new_dir != old_dir; in vfs_rename()
6157 lock_new_subdir = new_dir != old_dir || !(flags & RENAME_EXCHANGE); in vfs_rename()
6179 if (max_links && new_dir != old_dir) { in vfs_rename()
6184 old_dir->i_nlink >= max_links) in vfs_rename()
6187 error = try_break_deleg(old_dir, in vfs_rename()
[all …]
/linux/drivers/android/
H A Dbinderfs.c348 struct inode *old_dir, struct dentry *old_dentry, in binderfs_rename() argument
356 return simple_rename(idmap, old_dir, old_dentry, new_dir, in binderfs_rename()
/linux/drivers/android/binder/
H A Drust_binderfs.c339 struct inode *old_dir, struct dentry *old_dentry, in binderfs_rename() argument
347 return simple_rename(idmap, old_dir, old_dentry, new_dir, in binderfs_rename()
/linux/fs/ext4/
H A Dnamei.c3799 static int ext4_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ext4_rename() argument
3805 .dir = old_dir, in ext4_rename()
4053 static int ext4_cross_rename(struct inode *old_dir, struct dentry *old_dentry, in ext4_cross_rename() argument
4058 .dir = old_dir, in ext4_cross_rename()
4073 (ext4_test_inode_flag(old_dir, EXT4_INODE_PROJINHERIT) && in ext4_cross_rename()
4074 !projid_eq(EXT4_I(old_dir)->i_projid, in ext4_cross_rename()
4195 struct inode *old_dir, struct dentry *old_dentry, in ext4_rename2() argument
4201 err = ext4_emergency_state(old_dir->i_sb); in ext4_rename2()
4208 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ext4_rename2()
4214 return ext4_cross_rename(old_dir, old_dentry, in ext4_rename2()
[all …]
/linux/Documentation/translations/zh_CN/filesystems/
H A Ddebugfs.rst189 struct dentry *debugfs_rename(struct dentry *old_dir,
/linux/Documentation/translations/zh_TW/filesystems/
H A Ddebugfs.rst190 struct dentry *debugfs_rename(struct dentry *old_dir,
/linux/include/trace/events/
H A Dbtrfs.h1525 const struct btrfs_inode *old_dir,
1528 TP_ARGS(trans, inode, old_dir, old_dir_index),
1545 __entry->old_dir_ino = old_dir ? btrfs_ino(old_dir) : 0;
1560 const struct btrfs_inode *old_dir,
1563 TP_ARGS(trans, inode, old_dir, ret),
1578 __entry->old_dir_ino = old_dir ? btrfs_ino(old_dir) : 0;
/linux/security/
H A Dsecurity.c1525 * @old_dir: parent directory of the old file
1535 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, in security_path_rename() argument
1544 return call_int_hook(path_rename, old_dir, old_dentry, new_dir, in security_path_rename()
1760 * @old_dir: parent directory of the old file
1770 int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, in security_inode_rename() argument
1781 old_dir, old_dentry); in security_inode_rename()
1786 return call_int_hook(inode_rename, old_dir, old_dentry, in security_inode_rename()
/linux/security/apparmor/
H A Dlsm.c383 static int apparmor_path_rename(const struct path *old_dir, struct dentry *old_dentry, in apparmor_path_rename() argument
397 struct mnt_idmap *idmap = mnt_idmap(old_dir->mnt); in apparmor_path_rename()
399 struct path old_path = { .mnt = old_dir->mnt, in apparmor_path_rename()
/linux/fs/nfs/
H A Ddir.c2757 int nfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in nfs_rename() argument
2776 trace_nfs_rename_enter(old_dir, old_dentry, new_dir, new_dentry); in nfs_rename()
2825 task = nfs_async_rename(old_dir, new_dir, old_dentry, new_dentry, in nfs_rename()
2852 trace_nfs_rename_exit(old_dir, old_dentry, in nfs_rename()
H A Dnfs2xdr.c716 encode_diropargs(xdr, args->old_dir, old->name, old->len); in nfs2_xdr_enc_renameargs()
H A Dinternal.h731 nfs_async_rename(struct inode *old_dir, struct inode *new_dir,
/linux/fs/afs/
H A Ddir.c46 static int afs_rename(struct mnt_idmap *idmap, struct inode *old_dir,
2070 static int afs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in afs_rename() argument
2086 orig_dvnode = AFS_FS_I(old_dir); in afs_rename()
/linux/security/landlock/
H A Dfs.c1623 static int hook_path_rename(const struct path *const old_dir, in hook_file_open()
1629 /* old_dir refers to old_dentry->d_parent and new_dir->mnt */ in hook_file_open()
1516 hook_path_rename(const struct path * const old_dir,struct dentry * const old_dentry,const struct path * const new_dir,struct dentry * const new_dentry,const unsigned int flags) hook_path_rename() argument

12