btrfs: ref-verify: make sure owner is set for all refs
authorJosef Bacik <josef@toxicpanda.com>
Wed, 16 Dec 2020 16:18:47 +0000 (11:18 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 8 Feb 2021 21:58:50 +0000 (22:58 +0100)
commit1478143ac81acc4094f8501a88e9e6ef9ff0e4a5
tree46da1c5a63c634e46c32b4f2be35e793c0c87f0c
parent0d73a11c62642a25b688d09ae04b3b1f1b58ebb9
btrfs: ref-verify: make sure owner is set for all refs

I noticed that shared ref entries in ref-verify didn't have the proper
owner set, which caused me to think there was something seriously wrong.
However the problem is if we have a parent we simply weren't filling out
the owner part of the reference, even though we have it.

Fix this by making sure we set all the proper fields when we modify a
reference, this way we'll have the proper owner if a problem happens and
we don't waste time thinking we're updating the wrong level.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ref-verify.c