bcachefs: Fix bch2_fs_check_snapshots()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 15 Aug 2022 18:01:56 +0000 (14:01 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:38 +0000 (17:09 -0400)
commitc59d66b51b11064f17d87d5b9695e0216b8ade99
tree739b0ae7eea76ce1b8bb83f2dc8fd907515437e8
parentc497df8b85a7be22373d3d2e57e067285ebcd731
bcachefs: Fix bch2_fs_check_snapshots()

We were iterating starting at BCACHEFS_ROOT_INO, but snapshots start at
POS_MIN - meaning this code was never getting run.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Reported-by: Olexa Bilaniuk <obilaniu@gmail.com>
fs/bcachefs/subvolume.c