Lines Matching refs:old_inode
8893 struct inode *old_inode = old_dentry->d_inode; in btrfs_rename_exchange() local
8894 struct timespec64 ctime = current_time(old_inode); in btrfs_rename_exchange()
8895 u64 old_ino = btrfs_ino(BTRFS_I(old_inode)); in btrfs_rename_exchange()
8948 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename_exchange()
8992 inode_inc_iversion(old_inode); in btrfs_rename_exchange()
8996 old_inode->i_ctime = ctime; in btrfs_rename_exchange()
9001 BTRFS_I(old_inode), 1); in btrfs_rename_exchange()
9015 ret = btrfs_update_inode(trans, root, old_inode); in btrfs_rename_exchange()
9038 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), in btrfs_rename_exchange()
9054 if (old_inode->i_nlink == 1) in btrfs_rename_exchange()
9055 BTRFS_I(old_inode)->dir_index = old_idx; in btrfs_rename_exchange()
9060 btrfs_log_new_name(trans, BTRFS_I(old_inode), BTRFS_I(old_dir), in btrfs_rename_exchange()
9086 btrfs_inode_in_log(BTRFS_I(old_inode), fs_info->generation) || in btrfs_rename_exchange()
9171 struct inode *old_inode = d_inode(old_dentry); in btrfs_rename() local
9175 u64 old_ino = btrfs_ino(BTRFS_I(old_inode)); in btrfs_rename()
9189 if (S_ISDIR(old_inode->i_mode) && new_inode && in btrfs_rename()
9217 if (new_inode && S_ISREG(old_inode->i_mode) && new_inode->i_size) in btrfs_rename()
9218 filemap_flush(old_inode->i_mapping); in btrfs_rename()
9250 BTRFS_I(old_inode)->dir_index = 0ULL; in btrfs_rename()
9268 inode_inc_iversion(old_inode); in btrfs_rename()
9271 old_inode->i_ctime = current_time(old_dir); in btrfs_rename()
9275 BTRFS_I(old_inode), 1); in btrfs_rename()
9285 ret = btrfs_update_inode(trans, root, old_inode); in btrfs_rename()
9314 ret = btrfs_add_link(trans, BTRFS_I(new_dir), BTRFS_I(old_inode), in btrfs_rename()
9322 if (old_inode->i_nlink == 1) in btrfs_rename()
9323 BTRFS_I(old_inode)->dir_index = index; in btrfs_rename()
9326 btrfs_log_new_name(trans, BTRFS_I(old_inode), BTRFS_I(old_dir), in btrfs_rename()
9356 btrfs_inode_in_log(BTRFS_I(old_inode), fs_info->generation) || in btrfs_rename()