diff options
author | Qu Wenruo <wqu@suse.com> | 2023-09-02 08:13:56 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-10-12 16:44:03 +0200 |
commit | a4a81383fbf8c4e17ea6bbc7f005be98f5ece61b (patch) | |
tree | 15e36fa35600025f15fdc91020cf479459ff2779 /fs/btrfs/dev-replace.c | |
parent | a0bdc04b073233b2fbd3c3ab039e74c617566d6c (diff) | |
download | linux-a4a81383fbf8c4e17ea6bbc7f005be98f5ece61b.tar.gz linux-a4a81383fbf8c4e17ea6bbc7f005be98f5ece61b.tar.bz2 linux-a4a81383fbf8c4e17ea6bbc7f005be98f5ece61b.zip |
btrfs: qgroup: use qgroup_iterator to replace tmp ulist in qgroup_update_refcnt()
For function qgroup_update_refcnt(), we use @tmp list to iterate all the
involved qgroups of a subvolume.
It's a perfect match for qgroup_iterator facility, as that @tmp ulist
has a very limited lifespan (just inside the while() loop).
By migrating to qgroup_iterator, we can get rid of the GFP_ATOMIC memory
allocation and no error handling is needed.
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>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions