Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bcachefs: Run check_topology() first

check_topology() doesn't actually require alloc info - and running it
first means other passes don't have to catch btree read errors.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>

+1 -1
+1 -1
fs/bcachefs/recovery_types.h
··· 13 13 * must never change: 14 14 */ 15 15 #define BCH_RECOVERY_PASSES() \ 16 + x(check_topology, 4, 0) \ 16 17 x(alloc_read, 0, PASS_ALWAYS) \ 17 18 x(stripes_read, 1, PASS_ALWAYS) \ 18 19 x(initialize_subvolumes, 2, 0) \ 19 20 x(snapshots_read, 3, PASS_ALWAYS) \ 20 - x(check_topology, 4, 0) \ 21 21 x(check_allocations, 5, PASS_FSCK) \ 22 22 x(trans_mark_dev_sbs, 6, PASS_ALWAYS|PASS_SILENT) \ 23 23 x(fs_journal_alloc, 7, PASS_ALWAYS|PASS_SILENT) \