summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-09-18 11:15:50 +0200
committerDavid Sterba <dsterba@suse.com>2020-10-07 12:13:21 +0200
commit71fe0a55dae7e5ef7762c5627891b37bf1b367bf (patch)
tree5a0bcc36ea21c3843d62a62610e2147e4ecc8ebb /fs/btrfs/inode.c
parentbtrfs: clean BTRFS_I usage in btrfs_destroy_inode (diff)
downloadlinux-71fe0a55dae7e5ef7762c5627891b37bf1b367bf.tar.xz
linux-71fe0a55dae7e5ef7762c5627891b37bf1b367bf.zip
btrfs: switch btrfs_remove_ordered_extent to btrfs_inode
Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index d8cdc9829f84..42d5e1c0a5d1 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -2753,7 +2753,7 @@ out:
* This needs to be done to make sure anybody waiting knows we are done
* updating everything for this ordered extent.
*/
- btrfs_remove_ordered_extent(inode, ordered_extent);
+ btrfs_remove_ordered_extent(BTRFS_I(inode), ordered_extent);
/* once for us */
btrfs_put_ordered_extent(ordered_extent);
@@ -8689,7 +8689,7 @@ void btrfs_destroy_inode(struct inode *vfs_inode)
btrfs_err(root->fs_info,
"found ordered extent %llu %llu on inode cleanup",
ordered->file_offset, ordered->num_bytes);
- btrfs_remove_ordered_extent(vfs_inode, ordered);
+ btrfs_remove_ordered_extent(inode, ordered);
btrfs_put_ordered_extent(ordered);
btrfs_put_ordered_extent(ordered);
}