xfs
[Top] [All Lists]

[PATCH 1/3] XFS: Print error when xfs_ialloc_ag_select fails to find con

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/3] XFS: Print error when xfs_ialloc_ag_select fails to find continuous free space.
From: raghu.prabhu13@xxxxxxxxx
Date: Sun, 3 Jun 2012 16:42:47 +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=FWXmuGo8xbLVlS9qzYoDR4yirQwIUJreHiruAH0z4sU=; b=HCxtzUgACX4/1aU0SN1AR/UcnFz3SqfovDnfwM3qTh2rYgMII8qkz2kKQk7DNs/Whb wV8hJKT3C4Oro4Gj/DmU0l0xW4FQ41QwB5ddkhcPxNOTx3S/CmnNazeSdXFr+ldK9/Gf nQzjAPFIkTN2JEV9UnpZNA9Cz3x/pg1ySxmP8ZnHh5L2zLpWE9YWFXpr1lotKJu5SZmS sAkZuC2lneev1iCER3FegZBxrm50EQp0OEkcRsIa9KliRdNz+8kcoEUZCtuGYHV/Rpg+ Vvkze67qOTW+jSJhb8MlUpopbRTqKqYdgwTeiklAmNWm+C/HErV3N5NmTHaDC6AhMfDb sS3g==
In-reply-to: <cover.1338721614.git.rprabhu@xxxxxxxxxxx>
References: <cover.1338721614.git.rprabhu@xxxxxxxxxxx>
From: Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>

When xfs_ialloc_ag_select fails to find any AG with continuous free blocks for
needed inode allocation, printk error about it once.

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

diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index 177a21a..a02180a 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -543,8 +543,11 @@ nextag:
                if (agno >= agcount)
                        agno = 0;
                if (agno == pagno) {
-                       if (flags == 0)
+                       if (flags == 0) {
+                               pr_err_once("XFS (%s): Out of continuous free 
blocks for inode allocation",
+                                               mp->m_fsname);
                                return NULL;
+                       }
                        flags = 0;
                }
        }
-- 
1.7.10.3

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