]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: move delayed ref flushing for qgroup into qgroup helper
authorJosef Bacik <josef@toxicpanda.com>
Fri, 18 Dec 2020 19:24:23 +0000 (14:24 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:58:57 +0000 (22:58 +0100)
commit2226a8a7d5103d2e06c0437da326c8fa0c020c2f
tree963db32cdc45430a7d132facaaa76f1d40e0276c
parent3c05a4fbf3a699ba3b8efbde66d823bf64b0f5d5
btrfs: move delayed ref flushing for qgroup into qgroup helper

The commit 851fd91188fc ("btrfs: qgroup: Make snapshot accounting work
with new extent-oriented qgroup.") added a flush of the delayed refs
during snapshot creation in order to get the qgroup accounting properly.
However this code has changed and been moved to it's own helper that is
skipped if qgroups are turned off.  Move the flushing to the helper, as
we do not need it when qgroups are turned off.

Also add a comment explaining why it exists, and why it doesn't actually
save us.  This will be helpful later when we try to fix qgroup
accounting properly.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/transaction.c