aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-02-25 11:08:28 +0800
committerMister Oyster <oysterized@gmail.com>2017-04-13 12:35:02 +0200
commit11f5cfb6a2953e6999877f179848c47aee90ee70 (patch)
tree68061f42d63d4c4e1c728b710389df1928ad7c22 /fs/f2fs/data.c
parentd60962856c839289cee9eb470aeca2e0626c8db8 (diff)
f2fs: show simple call stack in fault injection message
Previously kernel message can show that in which function we do the injection, but unfortunately, most of the caller are the same, for tracking more information of injection path, it needs to show upper caller's name. This patch supports that ability. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Conflicts: fs/f2fs/data.c
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index e549a345d..09efaa25c 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -56,8 +56,10 @@ static void f2fs_read_end_io(struct bio *bio, int err)
int i;
#ifdef CONFIG_F2FS_FAULT_INJECTION
- if (time_to_inject(F2FS_P_SB(bio->bi_io_vec->bv_page), FAULT_IO))
+ if (time_to_inject(F2FS_P_SB(bio->bi_io_vec->bv_page), FAULT_IO)) {
+ f2fs_show_injection_info(FAULT_IO);
err = -EIO;
+ }
#endif
if (f2fs_bio_encrypted(bio)) {