bcachefs: bch2_snapshot_is_ancestor() now safe to call in early recovery
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 18 Mar 2024 00:39:42 +0000 (20:39 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 18 Mar 2024 00:53:12 +0000 (20:53 -0400)
commit1c31b83a4ec6815cd032b2aeb44785464ba6065b
treed9f6da6a82537a5894139a5d73f19b885416dd38
parent1ba6f48f092ec10df991cae237c9f9b8981938b2
bcachefs: bch2_snapshot_is_ancestor() now safe to call in early recovery

this fixes an assertion pop in
  bch2_check_snapshot_trees() ->
  check_snapshot_tree() ->
  bch2_snapshot_tree_master_subvol() ->
  bch2_snapshot_is_ancestor()

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