linux/fs/f2fs
Jaegeuk Kim a6ef5a9d72 f2fs: retry to update the inode page given data corruption
[ Upstream commit 3aa51c61cb ]

If the storage gives a corrupted node block due to short power failure and
reset, f2fs stops the entire operations by setting the checkpoint failure flag.

Let's give more chances to live by re-issuing IOs for a while in such critical
path.

Cc: stable@vger.kernel.org
Suggested-by: Randall Huang <huangrandall@google.com>
Suggested-by: Chao Yu <chao@kernel.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-03-17 08:48:50 +01:00
..
acl.c vfs: add rcu argument to ->get_acl() callback 2021-08-18 22:08:24 +02:00
acl.h vfs: add rcu argument to ->get_acl() callback 2021-08-18 22:08:24 +02:00
checkpoint.c f2fs: do not bother checkpoint by f2fs_get_node_info 2023-03-17 08:48:50 +01:00
compress.c f2fs: do not bother checkpoint by f2fs_get_node_info 2023-03-17 08:48:50 +01:00
data.c f2fs: do not bother checkpoint by f2fs_get_node_info 2023-03-17 08:48:50 +01:00
debug.c f2fs: use spin_lock to avoid hang 2022-04-08 14:23:58 +02:00
dir.c f2fs: don't use casefolded comparison for "." and ".." 2022-06-09 10:23:17 +02:00
extent_cache.c f2fs: let's avoid panic if extent_tree is not created 2023-01-24 07:22:42 +01:00
f2fs.h f2fs: do not bother checkpoint by f2fs_get_node_info 2023-03-17 08:48:50 +01:00
file.c f2fs: do not bother checkpoint by f2fs_get_node_info 2023-03-17 08:48:50 +01:00
gc.c f2fs: do not bother checkpoint by f2fs_get_node_info 2023-03-17 08:48:50 +01:00
gc.h f2fs: introduce gc_merge mount option 2021-03-30 18:48:56 -07:00
hash.c f2fs: don't use casefolded comparison for "." and ".." 2022-06-09 10:23:17 +02:00
inline.c f2fs: do not bother checkpoint by f2fs_get_node_info 2023-03-17 08:48:50 +01:00
inode.c f2fs: retry to update the inode page given data corruption 2023-03-17 08:48:50 +01:00
iostat.c f2fs: fix to avoid potential memory corruption in __update_iostat_latency() 2023-03-11 13:57:26 +01:00
iostat.h f2fs: introduce periodic iostat io latency traces 2021-08-23 10:25:51 -07:00
Kconfig f2fs: separate out iostat feature 2021-08-23 10:25:51 -07:00
Makefile f2fs: separate out iostat feature 2021-08-23 10:25:51 -07:00
namei.c f2fs: attach inline_data after setting compression 2022-06-29 09:03:27 +02:00
node.c f2fs: do not bother checkpoint by f2fs_get_node_info 2023-03-17 08:48:50 +01:00
node.h f2fs: swap: support migrating swapfile in aligned write mode 2021-06-23 01:09:35 -07:00
recovery.c f2fs: do not bother checkpoint by f2fs_get_node_info 2023-03-17 08:48:50 +01:00
segment.c f2fs: do not bother checkpoint by f2fs_get_node_info 2023-03-17 08:48:50 +01:00
segment.h f2fs: fix to do sanity check on total_data_blocks 2022-06-09 10:23:17 +02:00
shrinker.c f2fs: avoid race condition for shrinker count 2020-12-03 00:59:26 -08:00
super.c f2fs: use memcpy_{to,from}_page() where possible 2023-03-11 13:57:23 +01:00
sysfs.c f2fs: fix to enable ATGC correctly via gc_idle sysfs interface 2022-04-08 14:23:10 +02:00
verity.c fs: f2fs: initialize fsdata in pagecache_write() 2023-03-11 13:57:23 +01:00
xattr.c f2fs: support fault injection for dquot_initialize() 2022-06-09 10:23:13 +02:00
xattr.h f2fs: code cleanup by removing ifdef macro surrounding 2020-05-26 18:56:10 -07:00