[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070724085056.GE5992@schatzie.adilger.int>
Date: Tue, 24 Jul 2007 02:50:56 -0600
From: Andreas Dilger <adilger@...sterfs.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Fengguang Wu <fengguang.wu@...il.com>,
Nick Piggin <nickpiggin@...oo.com.au>,
Rusty Russell <rusty@...tcorp.com.au>,
Dave Jones <davej@...hat.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
linux-kernel <linux-kernel@...r.kernel.org>,
riel <riel@...hat.com>, Tim Pepper <lnxninja@...ibm.com>,
Chris Snook <csnook@...hat.com>,
Jens Axboe <jens.axboe@...cle.com>, linux-ext4@...r.kernel.org,
Mingming Cao <cmm@...ibm.com>,
Bjorn Helgaas <bjorn.helgaas@...com>,
Chris Ahna <christopher.j.ahna@...el.com>,
David Mosberger-Tang <davidm@....hp.com>,
Kyle McMartin <kyle@...isc-linux.org>,
Dave Jones <davej@...emonkey.org.uk>,
Dave Airlie <airlied@...ux.ie>
Subject: Re: [PATCH 0/3] readahead drop behind and size adjustment
On Jul 23, 2007 18:17 -0700, Andrew Morton wrote:
> hm, yes, there is a risk that the code was accidentally correct. Or the
> code has only ever dealt with power-of-2 inputs, in which case it happens
> to work either way.
>
> David(s) and ext4-people: could we please have a close review of these
> changes?
> > @@ -1706,8 +1704,8 @@ static int ext4_fill_super (struct super
> > - sbi->s_addr_per_block_bits = log2(EXT4_ADDR_PER_BLOCK(sb));
> > - sbi->s_desc_per_block_bits = log2(EXT4_DESC_PER_BLOCK(sb));
> > + sbi->s_addr_per_block_bits = ilog2(EXT4_ADDR_PER_BLOCK(sb));
> > + sbi->s_desc_per_block_bits = ilog2(EXT4_DESC_PER_BLOCK(sb));
For the ext[234] code there has only ever been power-of-two values for
ADDR_PER_BLOCK() and DESC_PER_BLOCK().
Cheers, Andreas
--
Andreas Dilger
Principal Software Engineer
Cluster File Systems, Inc.
-
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists