diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-11-28 16:36:54 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:39 -0500 |
commit | 3f0e297d8677c0f4465225ecb6d30d0edbc6e519 (patch) | |
tree | bb171290525bcf2d0b4266ad5c532de07e78da98 /fs/bcachefs/recovery.c | |
parent | 3ec3758a814840619ceb3446a37501cfca29bdae (diff) | |
download | linux-3f0e297d8677c0f4465225ecb6d30d0edbc6e519.tar.gz linux-3f0e297d8677c0f4465225ecb6d30d0edbc6e519.tar.bz2 linux-3f0e297d8677c0f4465225ecb6d30d0edbc6e519.zip |
bcachefs: Explicity go RW for fsck
This eliminates a lot of BCH_TRANS_COMMIT_lazy_rw flags, and is less
error prone.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/recovery.c')
-rw-r--r-- | fs/bcachefs/recovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index 643369c8c512..fec74086c9c5 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -534,7 +534,7 @@ static int bch2_set_may_go_rw(struct bch_fs *c) keys->gap = keys->nr; set_bit(BCH_FS_may_go_rw, &c->flags); - if (keys->nr) + if (keys->nr || c->opts.fsck) return bch2_fs_read_write_early(c); return 0; } |