From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 p68ALPRB233463 for ; Fri, 8 Jul 2011 05:21:25 -0500 Received: from ipmail05.adl6.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id F26F714FFA84 for ; Fri, 8 Jul 2011 03:21:24 -0700 (PDT) Received: from ipmail05.adl6.internode.on.net (ipmail05.adl6.internode.on.net [150.101.137.143]) by cuda.sgi.com with ESMTP id zXDYiPNxu88NiE8p for ; Fri, 08 Jul 2011 03:21:24 -0700 (PDT) Date: Fri, 8 Jul 2011 20:21:22 +1000 From: Dave Chinner Subject: Re: [PATCH 21/28] xfs: cleanup struct xfs_dir2_leaf Message-ID: <20110708102122.GN1026@dastard> References: <20110707110535.205001532@bombadil.infradead.org> <20110707110644.667342204@bombadil.infradead.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110707110644.667342204@bombadil.infradead.org> 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: Christoph Hellwig Cc: xfs@oss.sgi.com On Thu, Jul 07, 2011 at 07:05:56AM -0400, Christoph Hellwig wrote: > Simplify the confusing xfs_dir2_leaf structure. It is supposed to describe > an XFS dir2 leaf format btree block, but due to the variable sized nature > of almost all elements in it it can't actuall do anything close to that > job. Remove the members that are after the first variable sized array, > given that they could only be used for sizeof expressions that can as well > just use the underlying types directly, and make the ents array a real > C99 variable sized array. > > Also factor out the xfs_dir2_leaf_size, to make the sizing of a leaf > entry which already was convoluted somewhat readable after using the > longer type names in the sizeof expressions. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Alex Elder Reviewed-by: Dave Chinner -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs