| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH v3 2/3] xfs: Print error when xfs_ialloc_ag_select fails to find continuous free space. |
| From: | raghu.prabhu13@xxxxxxxxx |
| Date: | Wed, 26 Sep 2012 12:26:48 +0530 |
| Cc: | bpm@xxxxxxx, elder@xxxxxxxxxx, david@xxxxxxxxxxxxx, 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 :in-reply-to:references; bh=9Cr4rXxS/ZoLvlOXdLSvUOsq1yrwpHP93T6suho+JDM=; b=mG5guJEagfz+C9hNS+9PElkUO9VeiNFJTAlodoEv0uXB4PQCvan0oTXanjNZeC5kQq CZqLGwhdTI8qo3IwpIOpOBo/kb+hBJ2YqDqlQ0LEOLC+NQ2COLe6GCXd6ePx9mby+hWt NGU0iffjWt/bSiASN5rWaeVlL3cDd7gHmuSmvRY8Xi+G44BmC3JM71L9MsfcykEJ1rxf oNKFe23nK0XjK95i4zkUzx9RR6X86ub3nzQZLCTPXe2L0JqTT9SVoQxQwwJd8lhjIgFE 2hKZoBKlHRC6VsyVyhudenMVDZfZKv13Kw/q9R9/BP3KW3kSFXCNVCJck1WuTvG7IZd5 lIuQ== |
| In-reply-to: | <cover.1348639531.git.rprabhu@xxxxxxxxxxx> |
| In-reply-to: | <cover.1348641483.git.rprabhu@xxxxxxxxxxx> |
| References: | <cover.1348639531.git.rprabhu@xxxxxxxxxxx> |
| References: | <cover.1348641483.git.rprabhu@xxxxxxxxxxx> |
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.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH v3 1/3] xfs: Add ratelimited printk for different alert levels, raghu . prabhu13 |
|---|---|
| Next by Date: | [PATCH v3 3/3] xfs: Print error when unable to allocate inodes or out of free inodes., raghu . prabhu13 |
| Previous by Thread: | [PATCH v3 1/3] xfs: Add ratelimited printk for different alert levels, raghu . prabhu13 |
| Next by Thread: | [PATCH v3 3/3] xfs: Print error when unable to allocate inodes or out of free inodes., raghu . prabhu13 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |