[Top] [All Lists]

[PATCH v3 0/3] Print when ENOSPC due to lack of inodes.

To: xfs@xxxxxxxxxxx
Subject: [PATCH v3 0/3] Print when ENOSPC due to lack of inodes.
From: raghu.prabhu13@xxxxxxxxx
Date: Wed, 26 Sep 2012 12:26:46 +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; bh=DnKqgZ4FNDAfzzkTAlz8N/geiUALTWDwyO0hHqkpk2Q=; b=ARHIUwSpAB+Ez08zIKYwyPf6yrtYzpaUOVARjUr6EtnQ2qx3JSJDnjlFf6yQ56DBFt GqT0KWfRwv1B13PEz7/D3oTRURclPYZ9ei+6EzGM7zht4Q2NAsx4MlMbDLKKiB4UxFkY XgVsnCRFHdMwBwbP+AZ85wJ5kPQ8+qTcRqiwcy3zU+hVvMV0Chi4ItZ9NBl2lnIvejpC Zqj2hG+mulM07U9xFmRPP2RnXbcLJrEgzXjqZgZB2LrX5psfUF0PLeGzr6S6557DTL/4 Mmgve+hL4RbVMXB1j7XSEzDK795TO/6iJvAEStTiqDInqAvoNcfgoks40biDG+FvZnB6 sr1A==
From: Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>

Currently, when there are no free inodes left / free space to allocate them 
without inode64), there is no indication anywhere of this case, making it harder
to diagnose this case.

Hence, this series prints the causes/reasons to kernel log in a ratelimited
manner, when such a situation arises.

Regarding why it is printed at callee location instead at caller, it gives
greater granularity in expressing the precise reason and give more details, and
also some along the path are not ENOSPC (such in xfs_ialloc where 
ialloc_context is not NULL but
ino is) along with the fact that it (xfs_ialloc) is called at multiple sites, 
so to avoid duplication.

Version 1: Initial series.
Version 2: Added ratelimited printing to xfs_message and used that.
Version 3: Kept the logic intact in few places, fixed the column requirement. 

Raghavendra D Prabhu (3):
  xfs: Add ratelimited printk for different alert levels
  xfs: Print error when xfs_ialloc_ag_select fails to find continuous
    free space.
  xfs: Print error when unable to allocate inodes or out of free

 fs/xfs/xfs_ialloc.c  | 31 ++++++++++++++++++++++++++++---
 fs/xfs/xfs_linux.h   |  1 +
 fs/xfs/xfs_message.h | 26 ++++++++++++++++++++++++++
 3 files changed, 55 insertions(+), 3 deletions(-)


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