summaryrefslogtreecommitdiff
path: root/fs/btrfs/ordered-data.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2020-06-03 08:55:11 +0300
committerDavid Sterba <dsterba@suse.com>2020-07-27 13:55:30 +0300
commit8b8a979f1fc69054f99abab80daeae89aba3f19b (patch)
treeb0302db317fffb7f63ed91e7d997a3ed194c90a1 /fs/btrfs/ordered-data.c
parent8769af96cf6355ae96c808265a05171226b4b6e7 (diff)
downloadlinux-8b8a979f1fc69054f99abab80daeae89aba3f19b.tar.xz
btrfs: make btrfs_qgroup_free_data take btrfs_inode
It passes btrfs_inode to its callee so change the interface. 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/ordered-data.c')
-rw-r--r--fs/btrfs/ordered-data.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index cb737729f610..5f9ba8280560 100644
--- a/fs/btrfs/ordered-data.c
+++ b/fs/btrfs/ordered-data.c
@@ -173,8 +173,7 @@ static int __btrfs_add_ordered_extent(struct btrfs_inode *inode, u64 file_offset
if (type == BTRFS_ORDERED_NOCOW || type == BTRFS_ORDERED_PREALLOC) {
/* For nocow write, we can release the qgroup rsv right now */
- ret = btrfs_qgroup_free_data(&inode->vfs_inode, NULL, file_offset,
- num_bytes);
+ ret = btrfs_qgroup_free_data(inode, NULL, file_offset, num_bytes);
if (ret < 0)
return ret;
ret = 0;