xfs
[Top] [All Lists]

[PATCH V2 0/3] Print when ENOSPC due to lack of inodes in non-inode64 m

To: xfs@xxxxxxxxxxx
Subject: [PATCH V2 0/3] Print when ENOSPC due to lack of inodes in non-inode64 mount.
From: raghu.prabhu13@xxxxxxxxx
Date: Wed, 12 Sep 2012 03:43:21 +0530
Cc: 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=9S6Tcc0yqZ8eSEMcyFrk88Q/QGTM9hp1VLu9INEmv4o=; b=H+qUvoQ4FvMMkU9qaY6csLLBOMkjuyzQhSmjYOUw/J0mZXSmQXuYX13hJtKSlAu05p 1b/DStPjm3gqI3874XZYEhOtPKiEK1zp1HXE+A9PPEz1FDr2egyhEtO+q1iVpulEUcAM /DInaFGsq9GhWk7WsjGfcFwJiRTpGy5TNP9953d7MlV1eIEUKM3xH6Yug7vveiHG2XrA Z9y8fOB+vp8qI1RiHggIO9lNRTdgOhE2Ru4u2xIs2rRFhn7Joec671SlsQrBtOgPUuei h57KRAQD41sSjZ4K9wvubpZWjIK0Y5Jj44Au5xRvHPSEFm6mPQdMNBojDnFoKyXizpP2 Tsjg==
From: Raghavendra D Prabhu <rprabhu@xxxxxxxxxxx>

Currently, when there are no free inodes left / free space to allocate them 
(usually
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.

----- 
Version 1: Initially sent with pr_err_once to print the error only once.

Version 2: Added ratelimited functions to xfs_message.h instead of printing once
with pr_err_once on suggestion of Dave Chinner.

Raghavendra D Prabhu (3):
  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
    inodes.


 fs/xfs/xfs_ialloc.c  | 24 +++++++++++++++++++-----
 fs/xfs/xfs_message.h | 28 ++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 5 deletions(-)

-- 
1.7.12

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