]> 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)
commitebaa8e0bbf63ac1ee34901028d5ed6ea26c12a11
treea9e342623b066b0828ec841b3ab58c61e3c21ae5
parenteb45eb458700db4ba8ec08fa50ad1a9e81e9bb84
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