summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-05-19 18:46:43 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2017-05-24 07:09:45 +0300
commit04dfc23006a200865132ef404778a07b896a0280 (patch)
tree9b39b61fb792a10c382e0a7ca85ee4e09ee856a3 /fs/f2fs
parentfb830fc5cfc90ba8236921aacb72c6d70bf78af7 (diff)
downloadlinux-04dfc23006a200865132ef404778a07b896a0280.tar.xz
f2fs: show more info if fail to issue discard
Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/segment.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index a3766bc1ba4d..22cca2699095 100644
--- a/fs/f2fs/segment.c
+++ b/fs/f2fs/segment.c
@@ -741,7 +741,8 @@ static void __remove_discard_cmd(struct f2fs_sb_info *sbi,
if (dc->error)
f2fs_msg(sbi->sb, KERN_INFO,
- "Issue discard failed, ret: %d", dc->error);
+ "Issue discard(%u, %u, %u) failed, ret: %d",
+ dc->lstart, dc->start, dc->len, dc->error);
__detach_discard_cmd(dcc, dc);
}