/openbmc/linux/fs/nfs/ |
H A D | unlink.c | 266 struct inode *old_dir = data->old_dir; in nfs_async_rename_done() local 272 if (!NFS_PROTO(old_dir)->rename_done(task, old_dir, new_dir)) { in nfs_async_rename_done() 296 spin_lock(&data->old_dir->i_lock); in nfs_async_rename_release() 298 spin_unlock(&data->old_dir->i_lock); in nfs_async_rename_release() 299 if (data->new_dir != data->old_dir) { in nfs_async_rename_release() 308 iput(data->old_dir); in nfs_async_rename_release() 348 .rpc_client = NFS_CLIENT(old_dir), in nfs_async_rename() 369 data->old_dir = old_dir; in nfs_async_rename() 370 ihold(old_dir); in nfs_async_rename() 380 data->args.old_dir = NFS_FH(old_dir); in nfs_async_rename() [all …]
|
H A D | nfstrace.h | 796 const struct inode *old_dir, 806 __field(u64, old_dir) 813 __entry->dev = old_dir->i_sb->s_dev; 814 __entry->old_dir = NFS_FILEID(old_dir); 823 (unsigned long long)__entry->old_dir, 833 const struct inode *old_dir, \ 842 const struct inode *old_dir, 854 __field(u64, old_dir) 861 __entry->dev = old_dir->i_sb->s_dev; 863 __entry->old_dir = NFS_FILEID(old_dir); [all …]
|
/openbmc/linux/fs/affs/ |
H A D | namei.c | 408 struct super_block *sb = old_dir->i_sb; in affs_rename() 431 affs_lock_dir(old_dir); in affs_rename() 432 retval = affs_remove_hash(old_dir, bh); in affs_rename() 433 affs_unlock_dir(old_dir); in affs_rename() 456 struct super_block *sb = old_dir->i_sb; in affs_xrename() 472 affs_lock_dir(old_dir); in affs_xrename() 473 retval = affs_remove_hash(old_dir, bh_old); in affs_xrename() 474 affs_unlock_dir(old_dir); in affs_xrename() 495 affs_lock_dir(old_dir); in affs_xrename() 497 affs_unlock_dir(old_dir); in affs_xrename() [all …]
|
/openbmc/linux/fs/fat/ |
H A D | namei_msdos.c | 473 if (IS_DIRSYNC(old_dir)) { in do_msdos_rename() 482 inode_inc_iversion(old_dir); in do_msdos_rename() 484 if (IS_DIRSYNC(old_dir)) in do_msdos_rename() 485 (void)fat_sync_inode(old_dir); in do_msdos_rename() 487 mark_inode_dirty(old_dir); in do_msdos_rename() 533 drop_nlink(old_dir); in do_msdos_rename() 542 inode_inc_iversion(old_dir); in do_msdos_rename() 544 if (IS_DIRSYNC(old_dir)) in do_msdos_rename() 545 (void)fat_sync_inode(old_dir); in do_msdos_rename() 547 mark_inode_dirty(old_dir); in do_msdos_rename() [all …]
|
H A D | namei_vfat.c | 941 struct super_block *sb = old_dir->i_sb; in vfat_rename() 951 if (old_dir != new_dir) { in vfat_rename() 958 ts = current_time(old_dir); in vfat_rename() 987 drop_nlink(old_dir); in vfat_rename() 996 vfat_update_dir_metadata(old_dir, &ts); in vfat_rename() 1069 struct super_block *sb = old_dir->i_sb; in vfat_rename_exchange() 1078 if (old_dir != new_dir) { in vfat_rename_exchange() 1119 vfat_move_nlink(old_dir, new_dir); in vfat_rename_exchange() 1121 vfat_move_nlink(new_dir, old_dir); in vfat_rename_exchange() 1124 vfat_update_dir_metadata(old_dir, &ts); in vfat_rename_exchange() [all …]
|
/openbmc/linux/fs/f2fs/ |
H A D | namei.c | 919 if (old_dir == new_dir && !new_inode) { in f2fs_rename() 938 err = f2fs_dquot_initialize(old_dir); in f2fs_rename() 1049 if (old_dir != new_dir) in f2fs_rename() 1054 f2fs_i_links_write(old_dir, false); in f2fs_rename() 1106 !projid_eq(F2FS_I(old_dir)->i_projid, in f2fs_cross_rename() 1110 err = f2fs_dquot_initialize(old_dir); in f2fs_cross_rename() 1134 if (old_dir != new_dir) { in f2fs_cross_rename() 1194 inode_set_ctime_current(old_dir); in f2fs_cross_rename() 1196 f2fs_down_write(&F2FS_I(old_dir)->i_sem); in f2fs_cross_rename() 1198 f2fs_up_write(&F2FS_I(old_dir)->i_sem); in f2fs_cross_rename() [all …]
|
/openbmc/linux/fs/ubifs/ |
H A D | dir.c | 1426 drop_nlink(old_dir); in do_rename() 1440 drop_nlink(old_dir); in do_rename() 1444 old_dir->i_size -= old_sz; in do_rename() 1445 ubifs_inode(old_dir)->ui_size = old_dir->i_size; in do_rename() 1522 old_dir->i_size += old_sz; in do_rename() 1523 ubifs_inode(old_dir)->ui_size = old_dir->i_size; in do_rename() 1526 inc_nlink(old_dir); in do_rename() 1531 inc_nlink(old_dir); in do_rename() 1588 if (old_dir != new_dir) { in ubifs_xrename() 1591 drop_nlink(old_dir); in ubifs_xrename() [all …]
|
/openbmc/linux/fs/reiserfs/ |
H A D | namei.c | 1347 retval = dquot_initialize(old_dir); in reiserfs_rename() 1362 reiserfs_write_lock(old_dir->i_sb); in reiserfs_rename() 1369 reiserfs_write_unlock(old_dir->i_sb); in reiserfs_rename() 1374 reiserfs_write_unlock(old_dir->i_sb); in reiserfs_rename() 1391 if (old_dir != new_dir) { in reiserfs_rename() 1418 reiserfs_write_unlock(old_dir->i_sb); in reiserfs_rename() 1433 reiserfs_write_unlock(old_dir->i_sb); in reiserfs_rename() 1550 old_dir)) { in reiserfs_rename() 1612 DEC_DIR_INODE_NLINK(old_dir); in reiserfs_rename() 1634 reiserfs_update_sd(&th, old_dir); in reiserfs_rename() [all …]
|
/openbmc/linux/fs/jfs/ |
H A D | namei.c | 1093 rc = dquot_initialize(old_dir); in jfs_rename() 1163 if (old_dir != new_dir) in jfs_rename() 1183 if (old_dir != new_dir) in jfs_rename() 1246 drop_nlink(old_dir); in jfs_rename() 1247 if (old_dir != new_dir) { in jfs_rename() 1282 iplist[ipcount++] = old_dir; in jfs_rename() 1284 if (old_dir != new_dir) { in jfs_rename() 1286 old_dir->i_mtime = inode_set_ctime_current(old_dir); in jfs_rename() 1287 mark_inode_dirty(old_dir); in jfs_rename() 1306 if (old_dir != new_dir) in jfs_rename() [all …]
|
/openbmc/linux/fs/hpfs/ |
H A D | namei.c | 506 static int hpfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in hpfs_rename() argument 541 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename() 551 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 1)) != 2) { in hpfs_rename() 568 if (new_dir == old_dir) hpfs_brelse4(&qbh); in hpfs_rename() 573 if (new_dir != old_dir) hpfs_brelse4(&qbh); in hpfs_rename() 577 if (new_dir == old_dir) in hpfs_rename() 578 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename() 584 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 0))) { in hpfs_rename() 594 drop_nlink(old_dir); in hpfs_rename() 606 hpfs_update_directory_times(old_dir); in hpfs_rename()
|
/openbmc/linux/fs/debugfs/ |
H A D | inode.c | 823 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, in debugfs_rename() argument 830 if (IS_ERR(old_dir)) in debugfs_rename() 831 return old_dir; in debugfs_rename() 837 trap = lock_rename(new_dir, old_dir); in debugfs_rename() 839 if (d_really_is_negative(old_dir) || d_really_is_negative(new_dir)) in debugfs_rename() 852 error = simple_rename(&nop_mnt_idmap, d_inode(old_dir), old_dentry, in debugfs_rename() 859 fsnotify_move(d_inode(old_dir), d_inode(new_dir), &old_name.name, in debugfs_rename() 863 unlock_rename(new_dir, old_dir); in debugfs_rename() 869 unlock_rename(new_dir, old_dir); in debugfs_rename()
|
/openbmc/linux/fs/ufs/ |
H A D | namei.c | 246 static int ufs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in ufs_rename() argument 261 old_de = ufs_find_entry(old_dir, &old_dentry->d_name, &old_page); in ufs_rename() 303 ufs_delete_entry(old_dir, old_de, old_page); in ufs_rename() 307 if (old_dir != new_dir) in ufs_rename() 313 inode_dec_link_count(old_dir); in ufs_rename()
|
/openbmc/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 old_dir->i_mtime = 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()
|
/openbmc/linux/fs/ocfs2/ |
H A D | namei.c | 829 ocfs2_double_unlock(old_dir, dir); in ocfs2_link() 1201 struct inode *old_dir, in ocfs2_rename() argument 1221 u32 old_dir_nlink = old_dir->i_nlink; in ocfs2_rename() 1240 status = dquot_initialize(old_dir); in ocfs2_rename() 1251 osb = OCFS2_SB(old_dir->i_sb); in ocfs2_rename() 1569 old_dentry->d_name.len, old_dir, in ocfs2_rename() 1597 inode_set_mtime_to_ts(old_dir, inode_set_ctime_current(old_dir)); in ocfs2_rename() 1602 drop_nlink(old_dir); in ocfs2_rename() 1610 mark_inode_dirty(old_dir); in ocfs2_rename() 1617 if (old_dir != new_dir) { in ocfs2_rename() [all …]
|
H A D | dcache.c | 441 struct inode *old_dir, struct inode *new_dir) in ocfs2_dentry_move() argument 444 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb); in ocfs2_dentry_move() 453 if (old_dir == new_dir) in ocfs2_dentry_move()
|
H A D | dcache.h | 38 struct inode *old_dir, struct inode *new_dir);
|
/openbmc/linux/fs/ |
H A D | libfs.c | 322 int simple_offset_rename_exchange(struct inode *old_dir, in simple_offset_rename_exchange() argument 327 struct offset_ctx *old_ctx = old_dir->i_op->get_offset_ctx(old_dir); in simple_offset_rename_exchange() 721 inode_set_mtime_to_ts(old_dir, inode_set_ctime_current(old_dir)); in simple_rename_timestamp() 722 if (new_dir != old_dir) in simple_rename_timestamp() 737 if (old_dir != new_dir && old_is_dir != new_is_dir) { in simple_rename_exchange() 739 drop_nlink(old_dir); in simple_rename_exchange() 743 inc_nlink(old_dir); in simple_rename_exchange() 746 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry); in simple_rename_exchange() 751 int simple_rename(struct mnt_idmap *idmap, struct inode *old_dir, in simple_rename() argument 770 drop_nlink(old_dir); in simple_rename() [all …]
|
/openbmc/linux/fs/nilfs2/ |
H A D | namei.c | 356 struct inode *old_dir, struct dentry *old_dentry, in nilfs_rename() argument 372 err = nilfs_transaction_begin(old_dir->i_sb, &ti, 1); in nilfs_rename() 376 old_de = nilfs_find_entry(old_dir, &old_dentry->d_name, &old_page); in nilfs_rename() 430 drop_nlink(old_dir); in nilfs_rename() 432 nilfs_mark_inode_dirty(old_dir); in nilfs_rename() 435 err = nilfs_transaction_commit(old_dir->i_sb); in nilfs_rename() 447 nilfs_transaction_abort(old_dir->i_sb); in nilfs_rename()
|
/openbmc/linux/fs/udf/ |
H A D | namei.c | 762 static int udf_rename(struct mnt_idmap *idmap, struct inode *old_dir, in udf_rename() argument 776 retval = udf_fiiter_find_entry(old_dir, &old_dentry->d_name, &oiter); in udf_rename() 781 if (udf_get_lb_pblock(old_dir->i_sb, &tloc, 0) != old_inode->i_ino) { in udf_rename() 805 old_dir->i_ino) { in udf_rename() 809 old_inode->i_ino, old_dir->i_ino, in udf_rename() 855 udf_err(old_dir->i_sb, in udf_rename() 857 old_dir->i_ino); in udf_rename() 866 udf_add_fid_counter(old_dir->i_sb, S_ISDIR(new_inode->i_mode), in udf_rename() 869 old_dir->i_mtime = inode_set_ctime_current(old_dir); in udf_rename() 871 mark_inode_dirty(old_dir); in udf_rename() [all …]
|
/openbmc/linux/fs/crypto/ |
H A D | hooks.c | 69 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, in __fscrypt_prepare_rename() argument 81 if (old_dir != new_dir) { in __fscrypt_prepare_rename() 88 IS_ENCRYPTED(old_dir) && in __fscrypt_prepare_rename() 89 !fscrypt_has_permitted_context(old_dir, in __fscrypt_prepare_rename()
|
/openbmc/linux/fs/ext2/ |
H A D | namei.c | 318 struct inode * old_dir, struct dentry * old_dentry, in ext2_rename() argument 333 err = dquot_initialize(old_dir); in ext2_rename() 341 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_page); in ext2_rename() 391 if (old_dir != new_dir) in ext2_rename() 395 inode_dec_link_count(old_dir); in ext2_rename()
|
/openbmc/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()
|
/openbmc/linux/include/linux/ |
H A D | fsnotify.h | 146 static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir, in fsnotify_move() argument 166 old_dir, old_name, 0); in fsnotify_move() 169 old_dir, old_name, fs_cookie); in fsnotify_move()
|
H A D | fscrypt.h | 367 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, 682 static inline int __fscrypt_prepare_rename(struct inode *old_dir, in __fscrypt_prepare_rename() argument 923 static inline int fscrypt_prepare_rename(struct inode *old_dir, in fscrypt_prepare_rename() argument 929 if (IS_ENCRYPTED(old_dir) || IS_ENCRYPTED(new_dir)) in fscrypt_prepare_rename() 930 return __fscrypt_prepare_rename(old_dir, old_dentry, in fscrypt_prepare_rename()
|
/openbmc/linux/fs/hfs/ |
H A D | dir.c | 283 static int hfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, in hfs_rename() argument 300 old_dir, &old_dentry->d_name, in hfs_rename() 303 hfs_cat_build_key(old_dir->i_sb, in hfs_rename()
|