Commit d6ade689 authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba

btrfs: don't opencode extent_changeset_free

Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 7000babd
...@@ -3625,8 +3625,7 @@ static int qgroup_reserve_data(struct btrfs_inode *inode, ...@@ -3625,8 +3625,7 @@ static int qgroup_reserve_data(struct btrfs_inode *inode,
qgroup_unreserve_range(inode, reserved, start, len); qgroup_unreserve_range(inode, reserved, start, len);
out: out:
if (new_reserved) { if (new_reserved) {
extent_changeset_release(reserved); extent_changeset_free(reserved);
kfree(reserved);
*reserved_ret = NULL; *reserved_ret = NULL;
} }
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment