btrfs: check quota status earlier and don't do unnecessary frees
authorDavid Sterba <dsterba@suse.com>
Mon, 13 Feb 2017 13:05:24 +0000 (14:05 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:50 +0000 (12:03 +0100)
commit81353d50f5274e435105391b669e05aaf62c8609
treed730cd3645cb057c4d57bbe01a39b6d61dea2bd1
parent53d3235995b3f87754a42de24d707f158c1b3b40
btrfs: check quota status earlier and don't do unnecessary frees

Status of quotas should be the first check in
btrfs_qgroup_account_extent and we can return immediatelly, no need to
do no-op ulist frees.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c