bcachefs: Go emergency RO when i_blocks underflows
authorKent Overstreet <kent.overstreet@gmail.com>
Sat, 16 Apr 2022 20:06:59 +0000 (16:06 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:31 +0000 (17:09 -0400)
commitb33bf1bc0d1e81d614aad0f73f46f10e02906d20
treebb36470ebddc03ee4f0a26abe0ae2a45aeeff1aa
parent42796f74f42ea5b7d9f2d7df661a87d1425968bf
bcachefs: Go emergency RO when i_blocks underflows

This improves some of our warnings and assertions - they imply possible
filesystem inconsistencies, so they should be calling
bch2_fs_inconsistent().

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/fs-io.c