From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id CB65A29DF9 for ; Mon, 2 Dec 2013 04:43:07 -0600 (CST) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id 596ACAC001 for ; Mon, 2 Dec 2013 02:43:04 -0800 (PST) Received: from bombadil.infradead.org ([198.137.202.9]) by cuda.sgi.com with ESMTP id xa4nNuwEZiIPsBUQ (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 02 Dec 2013 02:43:03 -0800 (PST) Date: Mon, 2 Dec 2013 02:43:02 -0800 From: Christoph Hellwig Subject: Re: [PATCH 03/15] mkfs: Sanitise the superblock feature macros Message-ID: <20131202104302.GC21394@infradead.org> References: <1385689430-10103-1-git-send-email-david@fromorbit.com> <1385689430-10103-4-git-send-email-david@fromorbit.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1385689430-10103-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 Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: xfs@oss.sgi.com On Fri, Nov 29, 2013 at 12:43:38PM +1100, Dave Chinner wrote: > From: Dave Chinner > > They are horrible macros that simply obfuscate the code, so > let's factor the code and make them nice functions. > > To do this, add a sb_feat_args structure that carries around the > variables rather than a strange assortment of variables. This means > all the default can be clearly defined in a structure > initialisation, and dependent feature bits are easy to check. Nice clean, Reviewed-by: Christoph Hellwig But one minor nitpick: > + bool projid16bit; Given that 32-bit projids are the newer feature I'd make them the flag instead of inverting it, which is how all the other flags work. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs