Re: [PATCH] blockgroup_lock.h: simplify definition of NR_BG_LOCKS
From: Theodore Ts'o
Date: Thu Sep 15 2016 - 18:30:22 EST
On Wed, Sep 14, 2016 at 03:09:30PM -0600, Andreas Dilger wrote:
> On Sep 14, 2016, at 1:28 PM, Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
> > We can use ilog2() to more easily produce the desired NR_BG_LOCKS. This
> > works because ilog2() is evaluated at compile-time when its argument is
> > a compile-time constant.
> > I did not change the chosen NR_BG_LOCKS values.
> > Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> Reviewed-by: Andreas Dilger <adilger@xxxxxxxxx>