summaryrefslogtreecommitdiff
path: root/fs/btrfs/qgroup.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2021-03-02 12:44:40 +0200
committerDavid Sterba <dsterba@suse.com>2021-04-19 17:25:15 +0200
commitd6ade6894edaf5279fa1a7274b38ed6e7d4377f5 (patch)
treeb6a27a170c2c56ca65535c4bdc7ded17bc705ee0 /fs/btrfs/qgroup.c
parent7000babddac651d6038200ee847d50a7f930a2cc (diff)
downloadlwn-d6ade6894edaf5279fa1a7274b38ed6e7d4377f5.tar.gz
lwn-d6ade6894edaf5279fa1a7274b38ed6e7d4377f5.zip
btrfs: don't opencode extent_changeset_free
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> 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/qgroup.c')
-rw-r--r--fs/btrfs/qgroup.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c
index 997afb77f62b..fed1cecf801f 100644
--- a/fs/btrfs/qgroup.c
+++ b/fs/btrfs/qgroup.c
@@ -3625,8 +3625,7 @@ cleanup:
qgroup_unreserve_range(inode, reserved, start, len);
out:
if (new_reserved) {
- extent_changeset_release(reserved);
- kfree(reserved);
+ extent_changeset_free(reserved);
*reserved_ret = NULL;
}
return ret;