From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id 0AA997F37 for ; Thu, 12 Dec 2013 16:10:00 -0600 (CST) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay2.corp.sgi.com (Postfix) with ESMTP id ED72F304048 for ; Thu, 12 Dec 2013 14:09:56 -0800 (PST) Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by cuda.sgi.com with ESMTP id dGFkYNyEqxeJjlUn for ; Thu, 12 Dec 2013 14:09:55 -0800 (PST) Date: Fri, 13 Dec 2013 09:09:53 +1100 From: Dave Chinner Subject: Re: [PATCH v2 3/8] xfs: get rid of XFS_IALLOC_BLOCKS macros Message-ID: <20131212220953.GF10988@dastard> References: <52A967E9.7070508@oracle.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <52A967E9.7070508@oracle.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Jeff Liu Cc: "xfs@oss.sgi.com" On Thu, Dec 12, 2013 at 03:38:17PM +0800, Jeff Liu wrote: > From: Jie Liu > > Get rid of XFS_IALLOC_BLOCKS() marcos, use mp->m_ialloc_blks directly. > > Signed-off-by: Jie Liu .... > @@ -1228,9 +1228,9 @@ xfs_difree( > goto error0; > } > > - xfs_bmap_add_free(XFS_AGB_TO_FSB(mp, > - agno, XFS_INO_TO_AGBNO(mp,rec.ir_startino)), > - XFS_IALLOC_BLOCKS(mp), flist, mp); > + xfs_bmap_add_free(XFS_AGB_TO_FSB(mp, agno, > + XFS_INO_TO_AGBNO(mp, rec.ir_startino)), > + mp->m_ialloc_blks, flist, mp); > } else { > *delete = 0; > git-am fails to apply this hunk, but I'm not sure why. I updated it manually, the resulting patch looks identical. Other than that, it looks good. Reviewed-by: Dave Chinner -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs