]> git.hungrycats.org Git - linux/commit
btrfs: skip log replay on orphaned roots
authorJosef Bacik <josef@toxicpanda.com>
Mon, 2 Dec 2019 19:12:13 +0000 (11:12 -0800)
committerJosef Bacik <josef@toxicpanda.com>
Fri, 6 Dec 2019 16:34:48 +0000 (08:34 -0800)
commit79848cf5117d1c11fb44369ed47f09963186bb02
tree3702f4bb3b2f2ac5604357169a8d25ce18150773
parent4ce6c8f65193eed1df6fcbdcabf5aed6e961733d
btrfs: skip log replay on orphaned roots

My fsstress modifications coupled with generic/475 uncovered a failure
to mount and replay the log if we hit a orphaned root.  We do not want
to replay the log for an orphan root, but it's completely legitimate to
have an orphaned root with a log attached.  Fix this by simply skipping
replaying the log.  We still need to pin it's root node so that we do
not overwrite it while replaying other logs, as we re-read the log root
at every stage of the replay.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
fs/btrfs/tree-log.c