]> www.infradead.org Git - users/dwmw2/linux.git/commit
f2fs: defer readonly check vs norecovery
authorEric Sandeen <sandeen@redhat.com>
Mon, 3 Mar 2025 17:12:17 +0000 (11:12 -0600)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 13 Mar 2025 18:16:06 +0000 (18:16 +0000)
commit9cca49875997a1a7e92800a828a62bacb0f577b9
tree9fa425552055b3658cef0c1f714e64dcca060ec2
parent0edcb2197e761db482d485bc0e0f5fd42cc1bc3d
f2fs: defer readonly check vs norecovery

Defer the readonly-vs-norecovery check until after option parsing is done
so that option parsing does not require an active superblock for the test.
Add a helpful message, while we're at it.

(I think could be moved back into parsing after we switch to the new mount
API if desired, as the fs context will have RO state available.)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c