btrfs: qgroup: use qgroup_iterator in __qgroup_excl_accounting()
authorQu Wenruo <wqu@suse.com>
Sat, 2 Sep 2023 00:13:55 +0000 (08:13 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:03 +0000 (16:44 +0200)
commita0bdc04b073233b2fbd3c3ab039e74c617566d6c
tree13b5c58038f15033b3804a5ca554216037f3db67
parent0913445082496c2b29668ee26521401b273838b8
btrfs: qgroup: use qgroup_iterator in __qgroup_excl_accounting()

With the new qgroup_iterator_add() and qgroup_iterator_clean(), we can
get rid of the ulist and its GFP_ATOMIC memory allocation.

Furthermore we can merge the code handling the initial and parent
qgroups into one loop, and drop the @tmp ulist parameter for involved
call sites.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c