Re: [PATCH NFS 3/3] Replace nfs_block_bits() withroundup_pow_of_two()

From: Trond Myklebust
Date: Sun Jul 24 2005 - 18:10:28 EST


su den 24.07.2005 Klokka 16:36 (+0200) skreiv Rene Scharfe:
> [PATCH NFS 3/3] Replace nfs_block_bits() with roundup_pow_of_two()
>
> Function nfs_block_bits() an open-coded version of (the non-existing)
> rounddown_pow_of_two(). That means that for non-power-of-two target
> sizes it returns half the size needed for a block to fully contain
> the target. I guess this is wrong. :-) The patch uses the built-in
> roundup_pow_of_two() instead.

What non-power-of-two target? Anything _not_ aligned to a power of two
boundary is a BUG!

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/