mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 09:13:20 -05:00
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>
This commit is contained in:
parent
d3ff7fec9c
commit
423300e8fe
1 changed files with 2 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue