xfs
[Top] [All Lists]

[PATCH 2/3] XFS: Print error when unable to allocate inodes.

To: xfs@xxxxxxxxxxx
Subject: [PATCH 2/3] XFS: Print error when unable to allocate inodes.
From: raghu.prabhu13@xxxxxxxxx
Date: Sun, 3 Jun 2012 16:42:48 +0530
Cc: raghu.prabhu13@xxxxxxxxx, Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=Wm2db+cf/9+Dbo452sQJW9A99KLn098awbE8YL6shNg=; b=ZrHlohT+K2Z45Gy22v2G1RfAKvBakd8MNGUcuTl5GBX51lS/G8aLyQqz5k+v2PuYg9 PhlQAe75FiUpFNdaU8598aJEQL/dV2oXS7fC4CJI2Y8rB91npA7yV8F5oBk/OJO8SOof 1e0rH/4ytpHZukoGV4nCPAMuNelGQ4xAAC7agw5wyMaQBlnjZmozEyrL64ue18JUmv9m 9f4iULMpMtNdyTmDDeUZBqNLrm0elFf3hDk1dTJI/WA4Yenv8IcHu9+P/w7xZ2Fbao7i 4giqmV4uL7BHoGjnomEpQjaEG99IxFkugl3BttvmUII49Yux2ha1APu25hBCcc5exU06 oMxA==
In-reply-to: <cover.1338721614.git.rprabhu@xxxxxxxxxxx>
References: <cover.1338721614.git.rprabhu@xxxxxxxxxxx>
From: Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>

When xfs_ialloc_ag_alloc is unable to allocate required number of inodes, printk
error about it once.

Signed-off-by: Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>
---
 fs/xfs/xfs_ialloc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index a02180a..343d7a8 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -744,6 +744,8 @@ xfs_dialloc(
                                xfs_trans_brelse(tp, agbp);
                                if (error == ENOSPC) {
                                        *inop = NULLFSINO;
+                                       pr_err_once("XFS (%s): Unable to 
allocate inodes: Required %d, Current %llu, Maximum %llu",
+                                                       mp->m_fsname, 
XFS_IALLOC_INODES(mp), mp->m_sb.sb_icount, mp->m_maxicount);
                                        return 0;
                                } else
                                        return error;
-- 
1.7.10.3

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