| /linux/fs/nfs/ |
| H A D | unlink.c | 268 struct inode *old_dir = data->old_dir; in nfs_async_rename_done() local 272 trace_nfs_async_rename_done(old_dir, old_dentry, in nfs_async_rename_done() 274 if (!NFS_PROTO(old_dir)->rename_done(task, old_dir, new_dir)) { in nfs_async_rename_done() 290 struct super_block *sb = data->old_dir->i_sb; in nfs_async_rename_release() 298 spin_lock(&data->old_dir->i_lock); in nfs_async_rename_release() 299 nfs_force_lookup_revalidate(data->old_dir); in nfs_async_rename_release() 300 spin_unlock(&data->old_dir->i_lock); in nfs_async_rename_release() 301 if (data->new_dir != data->old_dir) { in nfs_async_rename_release() 310 iput(data->old_dir); in nfs_async_rename_release() 320 NFS_PROTO(data->old_dir)->rename_rpc_prepare(task, data); in nfs_rename_prepare() [all …]
|
| H A D | nfstrace.h | 825 const struct inode *old_dir, 831 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry), 835 __field(u64, old_dir) 842 __entry->dev = old_dir->i_sb->s_dev; 843 __entry->old_dir = NFS_FILEID(old_dir); 852 (unsigned long long)__entry->old_dir, 862 const struct inode *old_dir, \ 867 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry)) 871 const struct inode *old_dir, 878 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error), [all …]
|
| /linux/fs/ubifs/ |
| H A D | dir.c | 1321 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, in do_rename() argument 1325 struct ubifs_info *c = old_dir->i_sb->s_fs_info; in do_rename() 1331 int err, release, sync = 0, move = (new_dir != old_dir); in do_rename() 1353 old_dentry, old_inode->i_ino, old_dir->i_ino, in do_rename() 1372 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm); in do_rename() 1413 whiteout = create_whiteout(old_dir, old_dentry); 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() 1459 drop_nlink(old_dir); in do_rename() 1473 drop_nlink(old_dir); in do_rename() [all …]
|
| H A D | journal.c | 1354 int ubifs_jnl_rename(struct ubifs_info *c, const struct inode *old_dir, in ubifs_jnl_rename() argument 1368 int move = (old_dir != new_dir); in ubifs_jnl_rename() 1377 ubifs_assert(c, ubifs_inode(old_dir)->data_len == 0); in ubifs_jnl_rename() 1379 ubifs_assert(c, mutex_is_locked(&ubifs_inode(old_dir)->ui_mutex)); in ubifs_jnl_rename() 1438 dent_key_init_flash(c, &dent2->key, old_dir->i_ino, old_nm); in ubifs_jnl_rename() 1478 pack_inode(c, p, old_dir, 1); in ubifs_jnl_rename() 1483 pack_inode(c, p, old_dir, 0); in ubifs_jnl_rename() 1512 ubifs_wbuf_add_ino_nolock(wbuf, old_dir->i_ino); in ubifs_jnl_rename() 1531 dent_key_init(c, &key, old_dir->i_ino, old_nm); in ubifs_jnl_rename() 1540 dent_key_init(c, &key, old_dir->i_ino, old_nm); in ubifs_jnl_rename() [all …]
|
| /linux/fs/fat/ |
| H A D | namei_vfat.c | 934 static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry, in vfat_rename() argument 944 struct super_block *sb = old_dir->i_sb; in vfat_rename() 950 err = vfat_find(old_dir, &old_dentry->d_name, &old_sinfo); in vfat_rename() 954 if (old_dir != new_dir) { in vfat_rename() 961 ts = current_time(old_dir); in vfat_rename() 990 drop_nlink(old_dir); in vfat_rename() 995 err = fat_remove_entries(old_dir, &old_sinfo); /* and releases bh */ in vfat_rename() 999 vfat_update_dir_metadata(old_dir, &ts); in vfat_rename() 1019 corrupt |= vfat_update_dotdot_de(old_dir, old_inode, dotdot_bh, in vfat_rename() 1062 static int vfat_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, in vfat_rename_exchange() argument [all …]
|
| /linux/fs/hpfs/ |
| H A D | namei.c | 503 static int hpfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in hpfs_rename() argument 538 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename() 548 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 1)) != 2) { in hpfs_rename() 565 if (new_dir == old_dir) hpfs_brelse4(&qbh); in hpfs_rename() 570 if (new_dir != old_dir) hpfs_brelse4(&qbh); in hpfs_rename() 574 if (new_dir == old_dir) in hpfs_rename() 575 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename() 581 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 0))) { in hpfs_rename() 591 drop_nlink(old_dir); in hpfs_rename() 603 hpfs_update_directory_times(old_dir); in hpfs_rename()
|
| /linux/fs/ocfs2/ |
| H A D | namei.c | 690 struct inode *old_dir = d_inode(old_dentry->d_parent); in ocfs2_link() local 714 err = ocfs2_double_lock(osb, &old_dir_bh, old_dir, in ocfs2_link() 740 err = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_link() 834 ocfs2_double_unlock(old_dir, dir); in ocfs2_link() 1206 struct inode *old_dir, in ocfs2_rename() argument 1226 u32 old_dir_nlink = old_dir->i_nlink; in ocfs2_rename() 1241 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename() 1245 status = dquot_initialize(old_dir); in ocfs2_rename() 1256 osb = OCFS2_SB(old_dir->i_sb); in ocfs2_rename() 1274 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename() [all …]
|
| H A D | dcache.c | 430 struct inode *old_dir, struct inode *new_dir) in ocfs2_dentry_move() argument 433 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb); in ocfs2_dentry_move() 442 if (old_dir == new_dir) in ocfs2_dentry_move()
|
| H A D | dcache.h | 38 struct inode *old_dir, struct inode *new_dir);
|
| /linux/fs/bfs/ |
| H A D | dir.c | 202 static int bfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in bfs_rename() argument 223 old_bh = bfs_find_entry(old_dir, &old_dentry->d_name, &old_de); in bfs_rename() 243 inode_set_mtime_to_ts(old_dir, inode_set_ctime_current(old_dir)); in bfs_rename() 244 mark_inode_dirty(old_dir); in bfs_rename() 249 mark_buffer_dirty_inode(old_bh, old_dir); in bfs_rename()
|
| /linux/fs/ |
| H A D | libfs.c | 353 void simple_offset_rename(struct inode *old_dir, struct dentry *old_dentry, in simple_offset_rename() argument 356 struct offset_ctx *old_ctx = old_dir->i_op->get_offset_ctx(old_dir); in simple_offset_rename() 381 int simple_offset_rename_exchange(struct inode *old_dir, in simple_offset_rename_exchange() argument 386 struct offset_ctx *old_ctx = old_dir->i_op->get_offset_ctx(old_dir); in simple_offset_rename_exchange() 407 simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry); in simple_offset_rename_exchange() 836 void simple_rename_timestamp(struct inode *old_dir, struct dentry *old_dentry, in simple_rename_timestamp() argument 841 inode_set_mtime_to_ts(old_dir, inode_set_ctime_current(old_dir)); in simple_rename_timestamp() 842 if (new_dir != old_dir) in simple_rename_timestamp() 851 int simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, in simple_rename_exchange() argument 857 if (old_dir != new_dir && old_is_dir != new_is_dir) { in simple_rename_exchange() [all …]
|
| /linux/fs/crypto/ |
| H A D | hooks.c | 91 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, in __fscrypt_prepare_rename() argument 103 if (old_dir != new_dir) { in __fscrypt_prepare_rename() 110 IS_ENCRYPTED(old_dir) && in __fscrypt_prepare_rename() 111 !fscrypt_has_permitted_context(old_dir, in __fscrypt_prepare_rename()
|
| /linux/fs/minix/ |
| H A D | namei.c | 191 struct inode *old_dir, struct dentry *old_dentry, in minix_rename() argument 231 if (dir_de && old_dir->i_nlink <= 2) { in minix_rename() 232 minix_error_inode(old_dir, "inode has corrupted nlink"); in minix_rename() 265 inode_dec_link_count(old_dir); in minix_rename()
|
| /linux/fs/coda/ |
| H A D | dir.c | 298 static int coda_rename(struct mnt_idmap *idmap, struct inode *old_dir, in coda_rename() argument 311 error = venus_rename(old_dir->i_sb, coda_i2f(old_dir), in coda_rename() 317 coda_dir_drop_nlink(old_dir); in coda_rename() 322 coda_dir_update_mtime(old_dir); in coda_rename()
|
| /linux/fs/hfs/ |
| H A D | dir.c | 290 static int hfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in hfs_rename() argument 307 old_dir, &old_dentry->d_name, in hfs_rename() 310 hfs_cat_build_key(old_dir->i_sb, in hfs_rename()
|
| /linux/include/linux/ |
| H A D | fscrypt.h | 460 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, 779 static inline int __fscrypt_prepare_rename(struct inode *old_dir, in __fscrypt_prepare_rename() argument 1020 static inline int fscrypt_prepare_rename(struct inode *old_dir, in fscrypt_prepare_rename() argument 1026 if (IS_ENCRYPTED(old_dir) || IS_ENCRYPTED(new_dir)) in fscrypt_prepare_rename() 1027 return __fscrypt_prepare_rename(old_dir, old_dentry, in fscrypt_prepare_rename()
|
| H A D | fsnotify.h | 249 static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir, in fsnotify_move() argument 269 old_dir, old_name, 0); in fsnotify_move() 272 old_dir, old_name, fs_cookie); in fsnotify_move()
|
| /linux/fs/ceph/ |
| H A D | dir.c | 1456 static int ceph_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ceph_rename() argument 1460 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(old_dir->i_sb); in ceph_rename() 1469 if (ceph_snap(old_dir) != ceph_snap(new_dir)) in ceph_rename() 1471 if (ceph_snap(old_dir) != CEPH_NOSNAP) { 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() 1497 ihold(old_dir); in ceph_rename() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | verifier_vfs_accept.c | 88 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, in BPF_PROG() argument
|
| H A D | verifier_vfs_reject.c | 164 int BPF_PROG(inode_rename, struct inode *old_dir, struct dentry *old_dentry, in BPF_PROG() argument
|
| H A D | local_storage.c | 102 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/hfsplus/ |
| H A D | dir.c | 577 struct inode *old_dir, struct dentry *old_dentry, in hfsplus_rename() argument 597 old_dir, &old_dentry->d_name, in hfsplus_rename() 602 res = hfsplus_cat_write_inode(old_dir); in hfsplus_rename()
|
| /linux/fs/orangefs/ |
| H A D | namei.c | 369 struct inode *old_dir, in orangefs_rename() argument 395 new_op->upcall.req.rename.old_parent_refn = ORANGEFS_I(old_dir)->refn; in orangefs_rename()
|
| /linux/fs/9p/ |
| H A D | v9fs.h | 184 struct inode *old_dir, struct dentry *old_dentry,
|
| /linux/fs/btrfs/ |
| H A D | inode.c | 8228 static int btrfs_rename_exchange(struct inode *old_dir, in btrfs_rename_exchange() argument 8233 struct btrfs_fs_info *fs_info = inode_to_fs_info(old_dir); in btrfs_rename_exchange() 8236 struct btrfs_root *root = BTRFS_I(old_dir)->root; in btrfs_rename_exchange() 8263 ret = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_fname); in btrfs_rename_exchange() 8291 trans_num_items = (old_dir == new_dir ? 9 : 10); in btrfs_rename_exchange() 8331 ret = btrfs_set_inode_index(BTRFS_I(old_dir), &new_idx); in btrfs_rename_exchange() 8357 btrfs_ino(BTRFS_I(old_dir)), in btrfs_rename_exchange() 8367 inode_inc_iversion(old_dir); in btrfs_rename_exchange() 8371 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in btrfs_rename_exchange() 8399 btrfs_record_unlink_dir(trans, BTRFS_I(old_dir), in btrfs_rename_exchange() [all …]
|