]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: call f2fs_handle_critical_error() to set cp_error flag
authorChao Yu <chao@kernel.org>
Mon, 23 Mar 2026 08:38:32 +0000 (16:38 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 24 Mar 2026 17:21:01 +0000 (17:21 +0000)
commitbd882ffdd48a200ca2faa7c3e690ecf765784b16
treeacf703dfa975f9bb1739008a4f60e72c92e126b6
parent5471834a96fb697874be2ca0b052e74bcf3c23d1
f2fs: call f2fs_handle_critical_error() to set cp_error flag

f2fs_handle_page_eio() is the only left place we set CP_ERROR_FLAG
directly, it missed to update superblock.s_stop_reason, let's
call f2fs_handle_critical_error() instead to fix that.

Introduce STOP_CP_REASON_READ_{META,NODE,DATA} stop_cp_reason enum
variable to indicate which kind of data we failed to read.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
include/linux/f2fs_fs.h