@@ -165,7 +165,7 @@ enum bch_fsck_flags {
165165 x(ptr_to_missing_replicas_entry, 149, FSCK_AUTOFIX) \
166166 x(ptr_to_missing_stripe, 150, 0) \
167167 x(ptr_to_incorrect_stripe, 151, 0) \
168- x(ptr_gen_newer_than_bucket_gen, 152, 0 ) \
168+ x(ptr_gen_newer_than_bucket_gen, 152, FSCK_AUTOFIX ) \
169169 x(ptr_too_stale, 153, 0) \
170170 x(stale_dirty_ptr, 154, FSCK_AUTOFIX) \
171171 x(ptr_bucket_data_type_mismatch, 155, 0) \
@@ -236,7 +236,7 @@ enum bch_fsck_flags {
236236 x(inode_multiple_links_but_nlink_0, 207, FSCK_AUTOFIX) \
237237 x(inode_wrong_backpointer, 208, FSCK_AUTOFIX) \
238238 x(inode_wrong_nlink, 209, FSCK_AUTOFIX) \
239- x(inode_has_child_snapshots_wrong, 287, 0) \
239+ x(inode_has_child_snapshots_wrong, 287, FSCK_AUTOFIX) \
240240 x(inode_unreachable, 210, FSCK_AUTOFIX) \
241241 x(inode_journal_seq_in_future, 299, FSCK_AUTOFIX) \
242242 x(inode_i_sectors_underflow, 312, FSCK_AUTOFIX) \
@@ -279,8 +279,8 @@ enum bch_fsck_flags {
279279 x(root_dir_missing, 239, 0) \
280280 x(root_inode_not_dir, 240, 0) \
281281 x(dir_loop, 241, 0) \
282- x(hash_table_key_duplicate, 242, 0) \
283- x(hash_table_key_wrong_offset, 243, 0) \
282+ x(hash_table_key_duplicate, 242, FSCK_AUTOFIX) \
283+ x(hash_table_key_wrong_offset, 243, FSCK_AUTOFIX) \
284284 x(unlinked_inode_not_on_deleted_list, 244, FSCK_AUTOFIX) \
285285 x(reflink_p_front_pad_bad, 245, 0) \
286286 x(journal_entry_dup_same_device, 246, 0) \
0 commit comments