xfs
[Top] [All Lists]

[PATCH 2/2] xfs: enhance warning on xfs_imap() failure in xfs_iunlink_re

To: xfs@xxxxxxxxxxx
Subject: [PATCH 2/2] xfs: enhance warning on xfs_imap() failure in xfs_iunlink_remove()
From: Brian Foster <bfoster@xxxxxxxxxx>
Date: Thu, 25 Apr 2013 11:41:30 -0400
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1366904490-46821-1-git-send-email-bfoster@xxxxxxxxxx>
References: <1366904490-46821-1-git-send-email-bfoster@xxxxxxxxxx>
From: Eric Sandeen <sandeen@xxxxxxxxxx>

Include the global ino, ag number and agino in the warning message
emitted should xfs_imap() fail in the xfs_iunlink_remove() code
path.

Signed-off-by: Brian Foster <bfoster@xxxxxxxxxx>
---
 fs/xfs/xfs_inode.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index c22f980..a4fe989 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -1678,8 +1678,10 @@ xfs_iunlink_remove(
                        error = xfs_imap(mp, tp, next_ino, &imap, 0);
                        if (error) {
                                xfs_warn(mp,
-       "%s: xfs_imap returned error %d.",
-                                        __func__, error);
+                                       "%s: xfs_imap() returned error %d "
+                                       "for inode 0x%llx ag %d agino 0x%x",
+                                       __func__, error, ip->i_ino, agno, 
agino);
+
                                return error;
                        }
 
-- 
1.7.7.6

<Prev in Thread] Current Thread [Next in Thread>