[PATCH 2/3] XFS: Print error when xfs_ialloc_ag_select fails to find continuous free space.

From: raghu . prabhu13
Date: Tue Sep 11 2012 - 18:14:10 EST


From: Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>

When xfs_ialloc_ag_select fails to find any AG with continuous free blocks
required for inode allocation, printk the error in ratelimited manner.

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 5aceb3f..e75a39d 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -539,8 +539,11 @@ nextag:
if (agno >= agcount)
agno = 0;
if (agno == pagno) {
- if (flags == 0)
+ if (flags == 0) {
+ xfs_err_ratelimited(mp,
+ "Out of continuous free blocks for inode allocation");
return NULLAGNUMBER;
+ }
flags = 0;
}
}
--
1.7.12

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/