Home
last modified time | relevance | path

Searched refs:new_dir (Results 1 – 25 of 53) sorted by relevance

123

/linux/fs/nfs/
H A Dunlink.c269 struct inode *new_dir = data->new_dir; in nfs_async_rename_done() local
273 new_dir, data->new_dentry, task->tk_status); in nfs_async_rename_done()
274 if (!NFS_PROTO(old_dir)->rename_done(task, old_dir, new_dir)) { in nfs_async_rename_done()
301 if (data->new_dir != data->old_dir) { in nfs_async_rename_release()
302 spin_lock(&data->new_dir->i_lock); in nfs_async_rename_release()
303 nfs_force_lookup_revalidate(data->new_dir); in nfs_async_rename_release()
304 spin_unlock(&data->new_dir->i_lock); in nfs_async_rename_release()
311 iput(data->new_dir); in nfs_async_rename_release()
340 nfs_async_rename(struct inode *old_dir, struct inode *new_dir, in nfs_async_rename() argument
355 nfs_server_capable(new_dir, NFS_CAP_MOVEABLE)) in nfs_async_rename()
[all …]
H A Dnfstrace.h827 const struct inode *new_dir,
831 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry),
836 __field(u64, new_dir)
844 __entry->new_dir = NFS_FILEID(new_dir);
855 (unsigned long long)__entry->new_dir,
864 const struct inode *new_dir, \
867 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
873 const struct inode *new_dir,
878 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error),
885 __field(u64, new_dir)
[all …]
/linux/fs/fat/
H A Dnamei_vfat.c935 struct inode *new_dir, struct dentry *new_dentry) in vfat_rename() argument
954 if (old_dir != new_dir) { in vfat_rename()
971 err = vfat_add_entry(new_dir, &new_dentry->d_name, is_dir, 0, in vfat_rename()
977 inode_inc_iversion(new_dir); in vfat_rename()
981 err = vfat_sync_ipos(new_dir, old_inode); in vfat_rename()
986 err = vfat_update_dotdot_de(new_dir, old_inode, dotdot_bh, in vfat_rename()
992 inc_nlink(new_dir); in vfat_rename()
1034 int err2 = fat_remove_entries(new_dir, &sinfo); in vfat_rename()
1040 fat_fs_error(new_dir->i_sb, in vfat_rename()
1063 struct inode *new_dir, struct dentry *new_dentry) in vfat_rename_exchange() argument
[all …]
/linux/fs/ubifs/
H A Ddir.c1322 struct inode *new_dir, struct dentry *new_dentry, in do_rename() argument
1331 int err, release, sync = 0, move = (new_dir != old_dir); in do_rename()
1354 new_dentry, new_dir->i_ino, flags); in do_rename()
1376 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_nm); in do_rename()
1444 lock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1450 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in do_rename()
1465 inc_nlink(new_dir); in do_rename()
1496 new_dir->i_size += new_sz; in do_rename()
1497 ubifs_inode(new_dir)->ui_size = new_dir->i_size; in do_rename()
1506 sync = IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir); in do_rename()
[all …]
H A Djournal.c1357 const struct inode *new_dir, in ubifs_jnl_rename() argument
1368 int move = (old_dir != new_dir); in ubifs_jnl_rename()
1378 ubifs_assert(c, ubifs_inode(new_dir)->data_len == 0); in ubifs_jnl_rename()
1380 ubifs_assert(c, mutex_is_locked(&ubifs_inode(new_dir)->ui_mutex)); in ubifs_jnl_rename()
1423 dent_key_init_flash(c, &dent->key, new_dir->i_ino, new_nm); in ubifs_jnl_rename()
1489 pack_inode(c, p, new_dir, 1); in ubifs_jnl_rename()
1511 ubifs_wbuf_add_ino_nolock(wbuf, new_dir->i_ino); in ubifs_jnl_rename()
1524 dent_key_init(c, &key, new_dir->i_ino, new_nm); in ubifs_jnl_rename()
1571 ino_key_init(c, &key, new_dir->i_ino); in ubifs_jnl_rename()
1594 mark_inode_clean(c, ubifs_inode(new_dir)); in ubifs_jnl_rename()
/linux/fs/hpfs/
H A Dnamei.c504 struct dentry *old_dentry, struct inode *new_dir, in hpfs_rename() argument
549 if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, new_name, new_len, NULL, &qbh1))) { in hpfs_rename()
557 hpfs_error(new_dir->i_sb, "hpfs_rename: could not find dirent"); in hpfs_rename()
565 if (new_dir == old_dir) hpfs_brelse4(&qbh); in hpfs_rename()
567 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) { in hpfs_rename()
568 if (r == -1) hpfs_error(new_dir->i_sb, "hpfs_rename: dirent already exists!"); in hpfs_rename()
570 if (new_dir != old_dir) hpfs_brelse4(&qbh); in hpfs_rename()
574 if (new_dir == old_dir) in hpfs_rename()
588 hpfs_i(i)->i_parent_dir = new_dir->i_ino; in hpfs_rename()
590 inc_nlink(new_dir); in hpfs_rename()
[all …]
/linux/fs/
H A Dlibfs.c354 struct inode *new_dir, struct dentry *new_dentry) in simple_offset_rename() argument
357 struct offset_ctx *new_ctx = new_dir->i_op->get_offset_ctx(new_dir); in simple_offset_rename()
383 struct inode *new_dir, in simple_offset_rename_exchange() argument
387 struct offset_ctx *new_ctx = new_dir->i_op->get_offset_ctx(new_dir); in simple_offset_rename_exchange()
407 simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry); in simple_offset_rename_exchange()
837 struct inode *new_dir, struct dentry *new_dentry) in simple_rename_timestamp() argument
842 if (new_dir != old_dir) in simple_rename_timestamp()
843 inode_set_mtime_to_ts(new_dir, in simple_rename_timestamp()
844 inode_set_ctime_current(new_dir)); in simple_rename_timestamp()
852 struct inode *new_dir, struct dentry *new_dentry) in simple_rename_exchange() argument
[all …]
/linux/fs/ocfs2/
H A Dnamei.c1208 struct inode *new_dir, in ocfs2_rename() argument
1241 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1250 status = dquot_initialize(new_dir); in ocfs2_rename()
1274 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1284 status = ocfs2_check_if_ancestor(osb, new_dir->i_ino, in ocfs2_rename()
1293 (unsigned long long)new_dir->i_ino); in ocfs2_rename()
1300 &new_dir_bh, new_dir, 1); in ocfs2_rename()
1307 if (!new_dir->i_nlink) { in ocfs2_rename()
1346 if (S_ISDIR(old_inode->i_mode) && new_dir != old_dir) { in ocfs2_rename()
1363 if (!new_inode && new_dir->i_nlink >= ocfs2_link_max(osb)) { in ocfs2_rename()
[all …]
H A Ddcache.c430 struct inode *old_dir, struct inode *new_dir) in ocfs2_dentry_move() argument
442 if (old_dir == new_dir) in ocfs2_dentry_move()
448 ret = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(new_dir)->ip_blkno); in ocfs2_dentry_move()
H A Ddcache.h38 struct inode *old_dir, struct inode *new_dir);
/linux/fs/crypto/
H A Dhooks.c92 struct inode *new_dir, struct dentry *new_dentry, in __fscrypt_prepare_rename() argument
103 if (old_dir != new_dir) { in __fscrypt_prepare_rename()
104 if (IS_ENCRYPTED(new_dir) && in __fscrypt_prepare_rename()
105 !fscrypt_has_permitted_context(new_dir, in __fscrypt_prepare_rename()
/linux/fs/hfs/
H A Ddir.c291 struct dentry *old_dentry, struct inode *new_dir, in hfs_rename() argument
301 res = hfs_remove(new_dir, new_dentry); in hfs_rename()
308 new_dir, &new_dentry->d_name); in hfs_rename()
312 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
/linux/security/landlock/
H A Dfs.c1129 const struct path *const new_dir, in current_check_refer_path() argument
1164 if (old_dentry->d_parent == new_dir->dentry) { in current_check_refer_path()
1173 if (is_access_to_paths_allowed(subject->domain, new_dir, in current_check_refer_path()
1187 mnt_dir.mnt = new_dir->mnt; in current_check_refer_path()
1188 mnt_dir.dentry = new_dir->mnt->mnt_root; in current_check_refer_path()
1204 new_dir->dentry, in current_check_refer_path()
1228 request2.audit.u.path.dentry = new_dir->dentry; in current_check_refer_path()
1509 const struct path *const new_dir, in hook_path_link() argument
1512 return current_check_refer_path(old_dentry, new_dir, new_dentry, false, in hook_path_link()
1518 const struct path *const new_dir, in hook_path_rename() argument
[all …]
/linux/fs/minix/
H A Dnamei.c192 struct inode *new_dir, struct dentry *new_dentry, in minix_rename() argument
253 inode_inc_link_count(new_dir); in minix_rename()
263 err = minix_set_link(dir_de, dir_folio, new_dir); in minix_rename()
/linux/fs/orangefs/
H A Dnamei.c371 struct inode *new_dir, in orangefs_rename() argument
388 iattr.ia_mtime = iattr.ia_ctime = current_time(new_dir); in orangefs_rename()
389 __orangefs_setattr(new_dir, &iattr); in orangefs_rename()
396 new_op->upcall.req.rename.new_parent_refn = ORANGEFS_I(new_dir)->refn; in orangefs_rename()
/linux/include/linux/
H A Dfscrypt.h461 struct inode *new_dir, struct dentry *new_dentry,
781 struct inode *new_dir, in __fscrypt_prepare_rename() argument
1022 struct inode *new_dir, in fscrypt_prepare_rename() argument
1026 if (IS_ENCRYPTED(old_dir) || IS_ENCRYPTED(new_dir)) in fscrypt_prepare_rename()
1028 new_dir, new_dentry, flags); in fscrypt_prepare_rename()
/linux/fs/coda/
H A Ddir.c299 struct dentry *old_dentry, struct inode *new_dir, in coda_rename() argument
312 coda_i2f(new_dir), old_length, new_length, in coda_rename()
318 coda_dir_inc_nlink(new_dir); in coda_rename()
323 coda_dir_update_mtime(new_dir); in coda_rename()
/linux/fs/hfsplus/
H A Ddir.c578 struct inode *new_dir, struct dentry *new_dentry, in hfsplus_rename() argument
589 res = hfsplus_rmdir(new_dir, new_dentry); in hfsplus_rename()
591 res = hfsplus_unlink(new_dir, new_dentry); in hfsplus_rename()
598 new_dir, &new_dentry->d_name); in hfsplus_rename()
604 res = hfsplus_cat_write_inode(new_dir); in hfsplus_rename()
/linux/security/tomoyo/
H A Dtomoyo.c264 static int tomoyo_path_link(struct dentry *old_dentry, const struct path *new_dir, in tomoyo_path_link() argument
267 struct path path1 = { .mnt = new_dir->mnt, .dentry = old_dentry }; in tomoyo_path_link()
268 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link()
/linux/fs/bfs/
H A Ddir.c203 struct dentry *old_dentry, struct inode *new_dir, in bfs_rename() argument
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()
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_vfs_accept.c89 struct inode *new_dir, struct dentry *new_dentry, in BPF_PROG() argument
H A Dverifier_vfs_reject.c165 struct inode *new_dir, struct dentry *new_dentry, in BPF_PROG() argument
/linux/security/apparmor/include/
H A Dfile.h96 struct dentry *old_dentry, const struct path *new_dir,
/linux/fs/ceph/
H A Ddir.c1457 struct dentry *old_dentry, struct inode *new_dir, in ceph_rename() argument
1469 if (ceph_snap(old_dir) != ceph_snap(new_dir)) in ceph_rename()
1472 if (old_dir == new_dir && ceph_snap(old_dir) == CEPH_SNAPDIR) in ceph_rename()
1478 if ((old_dir != new_dir) && in ceph_rename()
1479 (!ceph_quota_is_same_realm(old_dir, new_dir))) in ceph_rename()
1486 err = fscrypt_prepare_rename(old_dir, old_dentry, new_dir, new_dentry, in ceph_rename()
1492 ceph_vinop(old_dir), old_dentry, ceph_vinop(new_dir), in ceph_rename()
1502 req->r_parent = new_dir; in ceph_rename()
1503 ihold(new_dir); in ceph_rename()
/linux/security/apparmor/
H A Dfile.c432 const struct path *new_dir, struct dentry *new_dentry) in aa_path_link() argument
434 struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry }; in aa_path_link()
435 struct path target = { .mnt = new_dir->mnt, .dentry = old_dentry }; in aa_path_link()

123