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,
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;
......
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