From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH] fs/minix: bugfix, number of indirect block ptrs per block depends on block size Date: Thu, 27 May 2010 05:35:31 +0100 Message-ID: <20100527043531.GY31073@ZenIV.linux.org.uk> References: <4BFCF1EB.20709@cs.vu.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Fam Zheng To: Erik van der Kouwe Return-path: Content-Disposition: inline In-Reply-To: <4BFCF1EB.20709@cs.vu.nl> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, May 26, 2010 at 12:03:23PM +0200, Erik van der Kouwe wrote: > +#define INDIRCOUNT(sb) ((sb)->s_blocksize / 4) ITYM (1 << ((sb)->s_blocksize_bits - 2)) Give gcc at least a chance to turn the uses of that into shifts... Applied with such change.