]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: pull up qgroup checks from delayed-ref core to init time
authorNikolay Borisov <nborisov@suse.com>
Tue, 12 Oct 2021 08:21:36 +0000 (11:21 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:06 +0000 (19:08 +0200)
commit0316c10382a1e7337537aee9cc7b703480c5ea27
tree270311660fc500bf7dac0735eca032a138586980
parent93a39656fab6e7958ec6c5a2b5f8c9a5a13d7862
btrfs: pull up qgroup checks from delayed-ref core to init time

Instead of checking whether qgroup processing for a dealyed ref has to
happen in the core of delayed ref, simply pull the check at init time of
respective delayed ref structures. This eliminates the final use of
real_root in delayed-ref core paving the way to making this member
optional.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/delayed-ref.c
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c
fs/btrfs/inode.c
fs/btrfs/relocation.c