aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/filesystems
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2024-01-24 22:49:15 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2024-02-05 18:58:41 -0800
commit21ec68234826b1b54ab980a8df6e33c74cfbee58 (patch)
treec31c6a934a70fe3865268db396b803a0f5db9c47 /Documentation/filesystems
parentf2fs: use IS_INODE replace IS_DNODE in f2fs_flush_inline_data (diff)
downloadwireguard-linux-21ec68234826b1b54ab980a8df6e33c74cfbee58.tar.xz
wireguard-linux-21ec68234826b1b54ab980a8df6e33c74cfbee58.zip
f2fs: fix to avoid potential panic during recovery
During recovery, if FAULT_BLOCK is on, it is possible that f2fs_reserve_new_block() will return -ENOSPC during recovery, then it may trigger panic. Also, if fault injection rate is 1 and only FAULT_BLOCK fault type is on, it may encounter deadloop in loop of block reservation. Let's change as below to fix these issues: - remove bug_on() to avoid panic. - limit the loop count of block reservation to avoid potential deadloop. Fixes: 956fa1ddc132 ("f2fs: fix to check return value of f2fs_reserve_new_block()") Reported-by: Zhiguo Niu <zhiguo.niu@unisoc.com> Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'Documentation/filesystems')
0 files changed, 0 insertions, 0 deletions