diff options
| author | Qu Wenruo <[email protected]> | 2023-09-02 00:13:56 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2023-10-12 14:44:03 +0000 |
| commit | a4a81383fbf8c4e17ea6bbc7f005be98f5ece61b (patch) | |
| tree | 15e36fa35600025f15fdc91020cf479459ff2779 /fs/btrfs/dev-replace.c | |
| parent | btrfs: qgroup: use qgroup_iterator in __qgroup_excl_accounting() (diff) | |
| download | kernel-a4a81383fbf8c4e17ea6bbc7f005be98f5ece61b.tar.gz kernel-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 <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
