| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 3/3] XFS: Print error when there are no free AGs. |
| From: | raghu.prabhu13@xxxxxxxxx |
| Date: | Sun, 3 Jun 2012 16:42:49 +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=viTsqrxUSN2lJhL5KYqXtBhaJL56/4MKD/CNh6Pzn68=; b=NecC0VwIZpnUftaWxnyYwlLjJOnQinhON8NqTJ486tKESE1gor7C9LebAQUrLN1AHe m7eEoUxNNlx7/8D2DsT0qgII+qDtGVELnkAt88vJAQPlct5qTB8G3WFUXK6Aa16vDxUB +7Au16yAJFVtvcvKQZNXbKFRtZTZhTmDKrUlAPQU+uv4PCMEqmZHbVLBy6lZNvGTftxY IL+1uKzhtwYKM64hWJGJaCMxIorhyVxvMDd3r1VcDTlWq1m8oyTfRX9X9eZGpGSBmkWV QvHGWK3xiJI2SiXuHqSXYQ9F/SVDntOEvPoH75r5RraNCBE8ZNZR+aE5BGfDDdmGKJc3 gYlg== |
| In-reply-to: | <cover.1338721614.git.rprabhu@xxxxxxxxxxx> |
| References: | <cover.1338721614.git.rprabhu@xxxxxxxxxxx> |
From: Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>
After looping through all the AGs and failing to find any with free inodes,
printk once about lack of AGs with free inodes.
Signed-off-by: Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>
---
fs/xfs/xfs_ialloc.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_ialloc.c b/fs/xfs/xfs_ialloc.c
index 343d7a8..b24ffa3 100644
--- a/fs/xfs/xfs_ialloc.c
+++ b/fs/xfs/xfs_ialloc.c
@@ -776,7 +776,11 @@ nextag:
tagno = 0;
if (tagno == agno) {
*inop = NULLFSINO;
- return noroom ? ENOSPC : 0;
+ if (noroom) {
+ pr_err_once("XFS (%s): Out of AGs with free
inodes: Required %d, Current %llu, Maximum %llu",
+ mp->m_fsname,
XFS_IALLOC_INODES(mp), mp->m_sb.sb_icount, mp->m_maxicount);
+ return 0;
+ }
}
pag = xfs_perag_get(mp, tagno);
if (pag->pagi_inodeok == 0) {
--
1.7.10.3
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/3] XFS: Print error when unable to allocate inodes., raghu . prabhu13 |
|---|---|
| Next by Date: | Re:HP,Samsung,Kyocera toner chips, NPC toner chips |
| Previous by Thread: | [PATCH 2/3] XFS: Print error when unable to allocate inodes., raghu . prabhu13 |
| Next by Thread: | Re:HP,Samsung,Kyocera toner chips, NPC toner chips |
| Indexes: | [Date] [Thread] [Top] [All Lists] |