From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q5K6rPZC252754 for ; Wed, 20 Jun 2012 01:53:25 -0500 Received: from bombadil.infradead.org (173-166-109-252-newengland.hfc.comcastbusiness.net [173.166.109.252]) by cuda.sgi.com with ESMTP id 5NCGRc7EFCuCd8D8 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 19 Jun 2012 23:53:24 -0700 (PDT) Date: Wed, 20 Jun 2012 02:53:23 -0400 From: Christoph Hellwig Subject: Re: [PATCH 3/9] xfs: add discontiguous buffer map interface Message-ID: <20120620065323.GA28745@infradead.org> References: <1339133914-11148-1-git-send-email-david@fromorbit.com> <1339133914-11148-4-git-send-email-david@fromorbit.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1339133914-11148-4-git-send-email-david@fromorbit.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 Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: xfs@oss.sgi.com > + struct xfs_buf_map map = { > + .bm_bn = blkno, > + .bm_len = numblks, > + }; I'm not a big fan of creative macro use, but with the amount of copies of these line why not add a: #define DEFINE_SINGLE_BUF_MAP(map, blkno, numblk) \ struct xfs_buf_map (map) = { .bm_bn = (blkno), .bm_len = (numblk) }; Otherwise looks good, Reviewed-by: Christoph Hellwig _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs