X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-r574664 Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m9LKYWxZ012039 for ; Tue, 21 Oct 2008 13:34:33 -0700 X-ASG-Debug-ID: 1224621376-7b6101d20000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from ipmail01.adl6.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id D81225292C3 for ; Tue, 21 Oct 2008 13:36:16 -0700 (PDT) Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by cuda.sgi.com with ESMTP id 5yPDJOP0ZC9siog0 for ; Tue, 21 Oct 2008 13:36:16 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAM8S9kh5LE2t/2dsb2JhbADCJoFr X-IronPort-AV: E=Sophos;i="4.33,460,1220193000"; d="scan'208";a="215311804" Received: from ppp121-44-77-173.lns10.syd6.internode.on.net (HELO disturbed) ([121.44.77.173]) by ipmail01.adl6.internode.on.net with ESMTP; 22 Oct 2008 07:06:14 +1030 Received: from dave by disturbed with local (Exim 4.69) (envelope-from ) id 1KsNxd-0004M5-Au; Wed, 22 Oct 2008 07:36:13 +1100 Date: Wed, 22 Oct 2008 07:36:13 +1100 From: Dave Chinner To: Christoph Hellwig Cc: Christoph Hellwig , xfs@oss.sgi.com X-ASG-Orig-Subj: Re: [PATCH 1/3] stop using xfs_itobp in xfs_bulkstat Subject: Re: [PATCH 1/3] stop using xfs_itobp in xfs_bulkstat Message-ID: <20081021203612.GL25906@disturbed> Mail-Followup-To: Christoph Hellwig , Christoph Hellwig , xfs@oss.sgi.com References: <20081020222036.GA23662@lst.de> <20081021024455.GB18495@disturbed> <20081021081329.GA23344@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081021081329.GA23344@infradead.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Barracuda-Connect: ipmail01.adl6.internode.on.net[203.16.214.146] X-Barracuda-Start-Time: 1224621377 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.1.8417 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- On Tue, Oct 21, 2008 at 04:13:29AM -0400, Christoph Hellwig wrote: > On Tue, Oct 21, 2008 at 01:44:55PM +1100, Dave Chinner wrote: > > On Tue, Oct 21, 2008 at 12:20:36AM +0200, Christoph Hellwig wrote: > > > xfs_bulkstat only wants the dinode, offset and buffer from a given > > > inode number. Instead of using xfs_itobp on a fake inode that is much > > > easier done with xfs_inotobp, which just needs an imap_flag paramter to > > > pass down the XFS_IMAP_BULKSTAT flag. > > > > Nice - that removes the only external user of xfs_inode_alloc() very > > cleanly. Looks ok to me. > > Which means we should mark it static now. Updated patch below: Looks good. BTW, the original patch series has run through xfsqa on my setup overnight without any problems. Cheers, Dave. -- Dave Chinner david@fromorbit.com