bcachefs: Fixes for snapshot_tree.master_subvol
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 20 Dec 2024 09:46:00 +0000 (04:46 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 10 Jan 2025 04:38:41 +0000 (23:38 -0500)
commit4bd06f07bcb5c472b7d7a90e6ee890bd0900b3e1
tree895769dd137a8c6ff93ef92b3881ad6870ac97f3
parentb5e4cd0871db885de05d531e8e72fa6059d81bd4
bcachefs: Fixes for snapshot_tree.master_subvol

Ensure that snapshot_tree.master_subvol is cleared when we delete the
master subvolume in a tree of snapshots, and allow for snapshot trees
that don't have a master subvolume in fsck.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/snapshot.c
fs/bcachefs/subvolume.c