bcachefs: Don't return -EROFS from mount on inconsistency error
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 28 May 2024 23:21:59 +0000 (19:21 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 28 May 2024 23:23:03 +0000 (19:23 -0400)
commit83208cbf2f08c270033003e10f3e7351de64a5c5
tree106ede9a5662f9b4a523157b051470a7dce934c9
parent8528bde1b66bab9a0abc2f521523abd00049c81b
bcachefs: Don't return -EROFS from mount on inconsistency error

We were accidentally returning -EROFS during recovery on filesystem
inconsistency - since this is what the journal returns on emergency
shutdown.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c