diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-04-13 17:26:59 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:00 +0300 |
commit | 423300e8fe41e7613a8edba59bca85eb7517731d (patch) | |
tree | 330027a16101404b8375c43477c338872e393d7f | |
parent | d3ff7fec9c604e2cac3d0126f6764c5c0392a271 (diff) | |
download | linux-423300e8fe41e7613a8edba59bca85eb7517731d.tar.xz |
bcachefs: BCH_BEATURE_atomic_nlink is obsolete
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/recovery.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 012a08574022..9991a4f67163 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -1005,13 +1005,6 @@ int bch2_fs_recovery(struct bch_fs *c) } - if (!c->sb.clean && - !(c->sb.features & (1 << BCH_FEATURE_atomic_nlink))) { - bch_info(c, "BCH_FEATURE_atomic_nlink not set and filesystem dirty, fsck required"); - c->opts.fsck = true; - c->opts.fix_errors = FSCK_OPT_YES; - } - if (!(c->sb.features & (1ULL << BCH_FEATURE_alloc_v2))) { bch_info(c, "alloc_v2 feature bit not set, fsck required"); c->opts.fsck = true; @@ -1247,8 +1240,8 @@ use_clean: } if (c->opts.fsck && - !test_bit(BCH_FS_ERROR, &c->flags)) { - c->disk_sb.sb->features[0] |= 1ULL << BCH_FEATURE_atomic_nlink; + !test_bit(BCH_FS_ERROR, &c->flags) && + BCH_SB_HAS_ERRORS(c->disk_sb.sb)) { SET_BCH_SB_HAS_ERRORS(c->disk_sb.sb, 0); write_sb = true; } |