X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.4.0-r929098 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q513VOhU100305 for ; Thu, 31 May 2012 22:31:24 -0500 X-ASG-Debug-ID: 1338521482-04bdf07470e0540001-NocioJ Received: from mail.sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id TIIHRVEf5A9BytU4 for ; Thu, 31 May 2012 20:31:22 -0700 (PDT) X-Barracuda-Envelope-From: sandeen@sandeen.net X-Barracuda-Apparent-Source-IP: 63.231.237.45 Received: from liberator.sandeen.net (liberator.sandeen.net [10.0.0.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sandeen.net (Postfix) with ESMTP id 0C8624963280 for ; Thu, 31 May 2012 22:31:22 -0500 (CDT) Message-ID: <4FC83789.8010900@sandeen.net> Date: Thu, 31 May 2012 22:31:21 -0500 From: Eric Sandeen User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: xfs@oss.sgi.com Subject: Re: [PATCH] Printk for ENOSPC due to lack of inodes References: <20120227003733.GA28162@Xye> <4F579D4C.4040208@sandeen.net> <20120531193616.GA3953@Xye.local> X-ASG-Orig-Subj: Re: [PATCH] Printk for ENOSPC due to lack of inodes In-Reply-To: <20120531193616.GA3953@Xye.local> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: sandeen.net[63.231.237.45] X-Barracuda-Start-Time: 1338521482 X-Barracuda-URL: http://192.48.157.11:80/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at sgi.com X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.3 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.98592 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- On 5/31/12 2:36 PM, Raghavendra D Prabhu wrote: > Hi, > > Thanks for the review. I have now moved it inside xfs_dialloc. Along with adding the message, I noticed that the loop > > while (!agi->agi_freecount) { > } > > is redundant when noroom=1 and okalloc=0. > > Also, xfs_ialloc_ag_alloc function in the loop calls > ============ > if (mp->m_maxicount && > mp->m_sb.sb_icount + XFS_IALLOC_INODES(mp) > mp->m_maxicount) { > > =============== > > condition again. > > So I have moved xfs_tran_brelse etc. into the condition along with message. > > Is this logic valid? If it is, then I will look into rate-limiting the message etc. It'd be easiest to understand this new change as a patch rather than as a description. If you are changing logic or flow in addition to adding the messages, it should almost certainly be sent as more than one patch. Thanks, -eric