[PATCH] xfs: show error code when printing writeback error messages.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Even without backtraces, including error code should be helpful.

  [  630.162595][ T9218] XFS (sda1): writeback error -12 on sector 131495992
  [  631.718685][ T9432] XFS (sda1): writeback error -12 on sector 131503928
  [  632.015588][  T442] XFS (sda1): writeback error -12 on sector 157773936

Signed-off-by: Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx>
---
 fs/xfs/xfs_aops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
index f16d5f196c6b..d2c9076643cf 100644
--- a/fs/xfs/xfs_aops.c
+++ b/fs/xfs/xfs_aops.c
@@ -112,7 +112,7 @@ xfs_destroy_ioend(
 
 	if (unlikely(error && !quiet)) {
 		xfs_err_ratelimited(XFS_I(inode)->i_mount,
-			"writeback error on sector %llu", start);
+			"writeback error %d on sector %llu", error, start);
 	}
 }
 
-- 
2.16.5




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux