From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932526Ab1LEQkX (ORCPT ); Mon, 5 Dec 2011 11:40:23 -0500 Received: from li9-11.members.linode.com ([67.18.176.11]:42486 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932465Ab1LEQkV (ORCPT ); Mon, 5 Dec 2011 11:40:21 -0500 Date: Mon, 5 Dec 2011 11:40:15 -0500 From: "Ted Ts'o" To: "Darrick J. Wong" Cc: Andreas Dilger , Sunil Mushran , Martin K Petersen , Greg Freemyer , Amir Goldstein , linux-kernel , Andi Kleen , Mingming Cao , Joel Becker , linux-fsdevel , linux-ext4@vger.kernel.org, Coly Li Subject: Re: [PATCH 10/22] ext4: Verify and calculate checksums for extent tree blocks Message-ID: <20111205164015.GD32031@thunk.org> Mail-Followup-To: Ted Ts'o , "Darrick J. Wong" , Andreas Dilger , Sunil Mushran , Martin K Petersen , Greg Freemyer , Amir Goldstein , linux-kernel , Andi Kleen , Mingming Cao , Joel Becker , linux-fsdevel , linux-ext4@vger.kernel.org, Coly Li References: <20111128232615.19194.80081.stgit@elm3c44.beaverton.ibm.com> <20111128232725.19194.12626.stgit@elm3c44.beaverton.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111128232725.19194.12626.stgit@elm3c44.beaverton.ibm.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on test.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 28, 2011 at 03:27:25PM -0800, Darrick J. Wong wrote: > /* > + * This is the extent tail on-disk structure. > + * All other extent structures are 12 bytes long. It turns out that > + * block_size % 12 >= 4 for all valid block sizes (1k, 2k, 4k). More generally, block_size % 12 is >= 4 for all powers of 2 greater than 12 bytes. I'd probably remove (1k, 2k, 4k) because that might scare people who might say, "hey! I'm using a 16k block size on my HPC system running on a Power or Itanium box --- am I going to be OK?". Valid block sizes go up to the page size of the hardware in question... - Ted