OSDN Git Service

btrfs: rely on owning_root field in btrfs_add_delayed_tree_ref to detect CHUNK_ROOT
authorNikolay Borisov <nborisov@suse.com>
Tue, 12 Oct 2021 08:21:34 +0000 (11:21 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:08:06 +0000 (19:08 +0200)
commitd55b9e687e718130106ad1a166561786763d099f
tree8ef356d6453f211bdfc4dc68f2d02da4ef8020cb
parent113479d5b8eb20d685da63b89e97b6ebb4206f15
btrfs: rely on owning_root field in btrfs_add_delayed_tree_ref to detect CHUNK_ROOT

The real_root field is going to be used only by ref-verify tool so limit
its use outside of it. Blocks belonging to the chunk root will always
have it as an owner so the check is equivalent.

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