]> 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)
commiteb45eb458700db4ba8ec08fa50ad1a9e81e9bb84
tree270311660fc500bf7dac0735eca032a138586980
parent3eee7ae2cb1ca4d9f8720368e4dc48980757da36
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