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>
This commit is contained in:
Chao Yu 2017-05-19 23:46:43 +08:00 committed by Jaegeuk Kim
parent fb830fc5cf
commit 04dfc23006
1 changed files with 2 additions and 1 deletions

View File

@ -741,7 +741,8 @@ static void __remove_discard_cmd(struct f2fs_sb_info *sbi,
if (dc->error) if (dc->error)
f2fs_msg(sbi->sb, KERN_INFO, 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); __detach_discard_cmd(dcc, dc);
} }