Skip to content

Commit 8d347a5

Browse files
author
Kent Overstreet
committed
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 parent 3ed9406 commit 8d347a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/recovery_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
* must never change:
1414
*/
1515
#define BCH_RECOVERY_PASSES() \
16+
x(check_topology, 4, 0) \
1617
x(alloc_read, 0, PASS_ALWAYS) \
1718
x(stripes_read, 1, PASS_ALWAYS) \
1819
x(initialize_subvolumes, 2, 0) \
1920
x(snapshots_read, 3, PASS_ALWAYS) \
20-
x(check_topology, 4, 0) \
2121
x(check_allocations, 5, PASS_FSCK) \
2222
x(trans_mark_dev_sbs, 6, PASS_ALWAYS|PASS_SILENT) \
2323
x(fs_journal_alloc, 7, PASS_ALWAYS|PASS_SILENT) \

0 commit comments

Comments
 (0)