]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make btrfs_ref::real_root optional
authorNikolay Borisov <nborisov@suse.com>
Tue, 12 Oct 2021 08:21:37 +0000 (11:21 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:06 +0000 (19:08 +0200)
commit51ebbc297a3b2c54fe10e8c774ee289fe64c5faf
treea9e342623b066b0828ec841b3ab58c61e3c21ae5
parent0316c10382a1e7337537aee9cc7b703480c5ea27
btrfs: make btrfs_ref::real_root optional

Now that real_root is only used in ref-verify core gate it behind
CONFIG_BTRFS_FS_REF_VERIFY ifdef. This shrinks the size of pending
delayed refs by 8 bytes per ref, of which we can have many at any one
time depending on intensity of the workload. Also change the comment
about the member as it no longer deals with qgroups.

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.h