kernel_optimize_test/fs/f2fs
Chao Yu 1f258ec13b f2fs: fix to avoid panic when encountering corrupt node
With fault_injection option, generic/361 of fstests will complain us
with below message:

Call Trace:
 get_node_page+0x12/0x20 [f2fs]
 f2fs_iget+0x92/0x7d0 [f2fs]
 f2fs_fill_super+0x10fb/0x15e0 [f2fs]
 mount_bdev+0x184/0x1c0
 f2fs_mount+0x15/0x20 [f2fs]
 mount_fs+0x39/0x150
 vfs_kern_mount+0x67/0x110
 do_mount+0x1bb/0xc70
 SyS_mount+0x83/0xd0
 do_syscall_64+0x6e/0x160
 entry_SYSCALL64_slow_path+0x25/0x25

Since mkfs loop device in f2fs partition can be failed silently due to
checkpoint error injection, so root inode page can be corrupted, in order
to avoid needless panic, in get_node_page, it's better to leave message
and return error to caller, and let fsck repaire it later.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
2017-07-04 02:11:39 -07:00
..
acl.c f2fs: remove the unnecessary cast for PTR_ERR 2017-07-04 02:11:32 -07:00
acl.h
checkpoint.c f2fs: introduce io_list for serialize data/node IOs 2017-05-23 21:09:03 -07:00
data.c f2fs: dax: fix races between page faults and truncating pages 2017-07-04 02:11:35 -07:00
debug.c f2fs: show available_nids in f2fs/status 2017-05-03 10:04:57 -07:00
dir.c for-f2fs-4.12 2017-05-08 12:24:17 -07:00
extent_cache.c f2fs: fix a bug caused by NULL extent tree 2017-05-23 21:07:18 -07:00
f2fs.h f2fs: dax: fix races between page faults and truncating pages 2017-07-04 02:11:35 -07:00
file.c f2fs: dax: fix races between page faults and truncating pages 2017-07-04 02:11:35 -07:00
gc.c f2fs: introduce io_list for serialize data/node IOs 2017-05-23 21:09:03 -07:00
gc.h
hash.c f2fs: check entire encrypted bigname when finding a dentry 2017-05-04 11:44:35 -04:00
inline.c for-f2fs-4.12 2017-05-08 12:24:17 -07:00
inode.c f2fs: remove false-positive bug_on 2017-07-04 02:11:31 -07:00
Kconfig
Makefile
namei.c for-f2fs-4.12 2017-05-08 12:24:17 -07:00
node.c f2fs: fix to avoid panic when encountering corrupt node 2017-07-04 02:11:39 -07:00
node.h f2fs: simplify the way of calulating next nat address 2017-07-04 02:11:34 -07:00
recovery.c f2fs: avoid dirty node pages in check_only recovery 2017-04-18 13:37:49 -07:00
segment.c f2fs: add f2fs_bug_on in __remove_discard_cmd 2017-07-04 02:11:37 -07:00
segment.h f2fs: split bio cache 2017-05-23 21:05:39 -07:00
shrinker.c f2fs: avoid casted negative value as shrink count 2016-11-23 12:11:03 -08:00
super.c f2fs: dax: fix races between page faults and truncating pages 2017-07-04 02:11:35 -07:00
trace.c f2fs: use set_page_private marcro in f2fs_trace_pid 2017-03-24 15:10:49 -04:00
trace.h
xattr.c f2fs: don't reserve additional space in xattr block 2017-03-24 15:10:53 -04:00
xattr.h f2fs: guard macro variables with braces 2017-04-10 19:48:10 -07:00