]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
f2fs: show more info if fail to issue discard
authorChao Yu <yuchao0@huawei.com>
Fri, 19 May 2017 15:46:43 +0000 (23:46 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 24 May 2017 04:09:45 +0000 (21:09 -0700)
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c

index a3766bc1ba4d9bed5d6e84da546a011ab8562297..22cca269909552556d2f0e9df478d933721798fa 100644 (file)
@@ -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);
 }