f2fs: support errors=remount-ro|continue|panic mountoption
authorChao Yu <chao@kernel.org>
Sun, 23 Apr 2023 15:49:15 +0000 (23:49 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 8 May 2023 18:18:04 +0000 (11:18 -0700)
commitb62e71be2110d8b52bf5faf3c3ed7ca1a0c113a5
tree79d62b540aa2d60efe03d9f1f616274301ab4b6e
parentac9a78681b921877518763ba0e89202254349d1b
f2fs: support errors=remount-ro|continue|panic mountoption

This patch supports errors=remount-ro|continue|panic mount option
for f2fs.

f2fs behaves as below in three different modes:
mode continue remount-ro panic
access ops normal noraml N/A
syscall errors -EIO -EROFS N/A
mount option rw ro N/A
pending dir write keep keep N/A
pending non-dir write drop keep N/A
pending node write drop keep N/A
pending meta write keep keep N/A

By default it uses "continue" mode.

[Yangtao helps to clean up function's name]
Signed-off-by: Yangtao Li <frank.li@vivo.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/filesystems/f2fs.rst
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/node.c
fs/f2fs/super.c