bcachefs: Make sure opts.read_only gets propagated back to VFS
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 8 Jun 2025 00:18:16 +0000 (20:18 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 12 Jun 2025 03:21:30 +0000 (23:21 -0400)
commitf946ce0be45e75801583a5371fccf7466961d9d0
tree1c5ffd52b0ffdbee372911a38584ccdd2aaa4513
parent0acb385ec19c99b213d28a309a941790758c53a8
bcachefs: Make sure opts.read_only gets propagated back to VFS

If we think we're read-only but the VFS doesn't, fun will ensue.

And now that we know we have to be able to do this safely, just make
nochanges imply ro.

Reported-by: syzbot+a7d6ceaba099cc21dee4@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c
fs/bcachefs/recovery.c