Lines Matching refs:old_inode
8745 struct inode *old_inode = old_dentry->d_inode; in btrfs_rename_exchange() local
8748 u64 old_ino = btrfs_ino(BTRFS_I(old_inode)); in btrfs_rename_exchange()
8840 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename_exchange()
8874 inode_inc_iversion(old_inode); in btrfs_rename_exchange()
8880 BTRFS_I(old_inode), true); in btrfs_rename_exchange()
8893 ret = btrfs_update_inode(trans, root, BTRFS_I(old_inode)); in btrfs_rename_exchange()
8915 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), in btrfs_rename_exchange()
8929 if (old_inode->i_nlink == 1) in btrfs_rename_exchange()
8930 BTRFS_I(old_inode)->dir_index = old_idx; in btrfs_rename_exchange()
9001 struct inode *old_inode = d_inode(old_dentry); in btrfs_rename() local
9006 u64 old_ino = btrfs_ino(BTRFS_I(old_inode)); in btrfs_rename()
9020 if (S_ISDIR(old_inode->i_mode) && new_inode && in btrfs_rename()
9054 if (new_inode && S_ISREG(old_inode->i_mode) && new_inode->i_size) in btrfs_rename()
9055 filemap_flush(old_inode->i_mapping); in btrfs_rename()
9125 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename()
9139 inode_inc_iversion(old_inode); in btrfs_rename()
9144 BTRFS_I(old_inode), true); in btrfs_rename()
9153 ret = btrfs_update_inode(trans, root, BTRFS_I(old_inode)); in btrfs_rename()
9180 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), in btrfs_rename()
9187 if (old_inode->i_nlink == 1) in btrfs_rename()
9188 BTRFS_I(old_inode)->dir_index = index; in btrfs_rename()