Searched refs:old_dir (Results 1 - 25 of 75) sorted by last modified time

123

/linux-master/fs/btrfs/
H A Dioctl.c2423 struct inode *old_dir; local
2461 old_dir = dir;
2481 if (old_dir != dir && idmap != &nop_mnt_idmap) {
H A Dinode.c8801 static int btrfs_rename_exchange(struct inode *old_dir, argument
8806 struct btrfs_fs_info *fs_info = inode_to_fs_info(old_dir);
8809 struct btrfs_root *root = BTRFS_I(old_dir)->root;
8835 ret = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_fname);
8863 trans_num_items = (old_dir == new_dir ? 9 : 10);
8903 ret = btrfs_set_inode_index(BTRFS_I(old_dir), &new_idx);
8929 btrfs_ino(BTRFS_I(old_dir)),
8939 inode_inc_iversion(old_dir);
8943 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
8946 btrfs_record_unlink_dir(trans, BTRFS_I(old_dir),
9053 btrfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
9289 btrfs_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/9p/
H A Dvfs_inode.c822 * @old_dir: old dir inode
831 v9fs_vfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
910 v9fs_dec_count(old_dir);
913 v9fs_invalidate_inode_attr(old_dir);
H A Dv9fs.h179 struct inode *old_dir, struct dentry *old_dentry,
/linux-master/fs/smb/server/
H A Dvfs.c778 rd.old_dir = d_inode(old_parent),
/linux-master/mm/
H A Dshmem.c3413 struct inode *old_dir, struct dentry *old_dentry)
3422 error = shmem_mknod(idmap, old_dir, whiteout,
3446 struct inode *old_dir, struct dentry *old_dentry,
3458 return simple_offset_rename_exchange(old_dir, old_dentry,
3465 error = shmem_whiteout(idmap, old_dir, old_dentry);
3470 simple_offset_remove(shmem_get_offset_ctx(old_dir), old_dentry);
3479 drop_nlink(old_dir);
3482 drop_nlink(old_dir);
3486 old_dir->i_size -= BOGO_DIRENT_SIZE;
3488 simple_rename_timestamp(old_dir, old_dentr
3412 shmem_whiteout(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry) argument
3445 shmem_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/ceph/
H A Dmds_client.c3771 struct inode *old_dir = req->r_old_dentry_dir; local
3775 dir, old_dir);
3778 if (old_dir)
3779 ceph_dir_clear_complete(old_dir);
/linux-master/include/linux/
H A Dfs.h1878 * @old_dir: parent of source
1888 struct inode *old_dir; member in struct:renamedata
3295 void simple_rename_timestamp(struct inode *old_dir, struct dentry *old_dentry,
3297 extern int simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry,
3343 int simple_offset_rename_exchange(struct inode *old_dir,
H A Dnfs_xdr.h722 const struct nfs_fh *old_dir; member in struct:nfs_renameargs
1717 struct inode *old_dir; member in struct:nfs_renamedata
1773 int (*rename_done) (struct rpc_task *task, struct inode *old_dir, struct inode *new_dir);
/linux-master/security/
H A Dsecurity.c1899 * @old_dir: parent directory of the old file
1909 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, argument
1918 return call_int_hook(path_rename, old_dir, old_dentry, new_dir,
2134 * @old_dir: parent directory of the old file
2144 int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, argument
2155 old_dir, old_dentry);
2160 return call_int_hook(inode_rename, old_dir, old_dentry,
/linux-master/fs/
H A Dnamei.c4762 struct inode *old_dir = rd->old_dir, *new_dir = rd->new_dir; local
4778 error = may_delete(rd->old_mnt_idmap, old_dir, old_dentry, is_dir);
4797 if (!old_dir->i_op->rename)
4804 if (new_dir != old_dir) {
4819 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry,
4839 lock_old_subdir = new_dir != old_dir;
4840 lock_new_subdir = new_dir != old_dir || !(flags & RENAME_EXCHANGE);
4862 if (max_links && new_dir != old_dir) {
4867 old_dir
[all...]
/linux-master/fs/nfsd/
H A Dvfs.c1891 .old_dir = fdir,
/linux-master/fs/ubifs/
H A Dubifs.h1817 int ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir,
H A Djournal.c1330 * @old_dir: parent inode of directory entry to rename
1345 int ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir, argument
1359 int move = (old_dir != new_dir);
1368 ubifs_assert(c, ubifs_inode(old_dir)->data_len == 0);
1370 ubifs_assert(c, mutex_is_locked(&ubifs_inode(old_dir)->ui_mutex));
1429 dent_key_init_flash(c, &dent2->key, old_dir->i_ino, old_nm);
1469 pack_inode(c, p, old_dir, 1);
1474 pack_inode(c, p, old_dir, 0);
1503 ubifs_wbuf_add_ino_nolock(wbuf, old_dir->i_ino);
1522 dent_key_init(c, &key, old_dir
[all...]
H A Ddir.c1294 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, argument
1298 struct ubifs_info *c = old_dir->i_sb->s_fs_info;
1304 int err, release, sync = 0, move = (new_dir != old_dir);
1326 old_dentry, old_inode->i_ino, old_dir->i_ino,
1345 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm);
1386 whiteout = create_whiteout(old_dir, old_dentry);
1417 /* Add the old_dentry size to the old_dir size. */
1421 lock_4_inodes(old_dir, new_dir, new_inode, whiteout);
1427 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
1433 * @old_dir lose
1557 ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
1621 ubifs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/kernfs/
H A Ddir.c1271 struct inode *old_dir, struct dentry *old_dentry,
1270 kernfs_iop_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/fs/exfat/
H A Dnamei.c1233 struct inode *old_dir, struct dentry *old_dentry,
1238 struct super_block *sb = old_dir->i_sb;
1255 err = __exfat_rename(old_dir, EXFAT_I(old_inode), new_dir, new_dentry);
1260 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
1277 if (S_ISDIR(old_inode->i_mode) && old_dir != new_dir) {
1278 drop_nlink(old_dir);
1283 inode_inc_iversion(old_dir);
1284 if (new_dir != old_dir)
1285 mark_inode_dirty(old_dir);
1232 exfat_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/fs/debugfs/
H A Dinode.c856 * @old_dir: a pointer to the parent dentry for the renamed object. This
873 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, argument
880 if (IS_ERR(old_dir))
881 return old_dir;
887 trap = lock_rename(new_dir, old_dir);
889 if (d_really_is_negative(old_dir) || d_really_is_negative(new_dir))
902 error = simple_rename(&nop_mnt_idmap, d_inode(old_dir), old_dentry,
909 fsnotify_move(d_inode(old_dir), d_inode(new_dir), &old_name.name,
913 unlock_rename(new_dir, old_dir);
919 unlock_rename(new_dir, old_dir);
[all...]
/linux-master/fs/f2fs/
H A Dnamei.c953 static int f2fs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
957 struct f2fs_sb_info *sbi = F2FS_I_SB(old_dir);
981 * add a link in old_dir which can convert inline_dir.
987 if (old_dir == new_dir && !new_inode) {
988 err = f2fs_try_convert_inline_dir(old_dir, new_dentry);
996 err = f2fs_setup_filename(old_dir, &old_dentry->d_name,
1001 err = f2fs_create_whiteout(idmap, old_dir, &whiteout, &fname);
1006 err = f2fs_dquot_initialize(old_dir);
1021 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_page);
1028 if (old_is_dir && old_dir !
1149 f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
1314 f2fs_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/afs/
H A Ddir.c41 static int afs_rename(struct mnt_idmap *idmap, struct inode *old_dir,
1921 static int afs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
1937 orig_dvnode = AFS_FS_I(old_dir);
/linux-master/fs/nfs/
H A Dnfs4proc.c4876 nfs4_setup_sequence(NFS_SERVER(data->old_dir)->nfs_client,
4882 static int nfs4_proc_rename_done(struct rpc_task *task, struct inode *old_dir, argument
4895 if (new_dir != old_dir) {
4897 nfs4_update_changeattr(old_dir, &res->old_cinfo,
4906 nfs4_update_changeattr(old_dir, &res->old_cinfo,
H A Dinternal.h648 nfs_async_rename(struct inode *old_dir, struct inode *new_dir,
/linux-master/security/selinux/
H A Dhooks.c1883 static inline int may_rename(struct inode *old_dir, argument
1895 old_dsec = inode_security(old_dir);
1911 if (old_is_dir && new_dir != old_dir) {
/linux-master/security/landlock/
H A Dfs.c1240 static int hook_path_rename(const struct path *const old_dir, argument
1246 /* old_dir refers to old_dentry->d_parent and new_dir->mnt */
/linux-master/security/apparmor/
H A Dlsm.c381 static int apparmor_path_rename(const struct path *old_dir, struct dentry *old_dentry, argument
395 struct mnt_idmap *idmap = mnt_idmap(old_dir->mnt);
397 struct path old_path = { .mnt = old_dir->mnt,

Completed in 536 milliseconds

123