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)
commiteed2037fc56263fe218548f523c77e7ae3f94a7c
treea9e342623b066b0828ec841b3ab58c61e3c21ae5
parent681145d4acf4ecba052432f2e466b120c3739d01
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