[PATCH 1/5] xfs: speculative delayed allocation uses rounddown_power_of_2 badly
Christoph Hellwig
hch at infradead.org
Mon Jan 24 02:59:49 CST 2011
On Wed, Jan 19, 2011 at 03:29:56PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner at redhat.com>
>
> rounddown_power_of_2() returns an undefined result when passed a
> value of zero. The specualtive delayed allocation code is doing this
> when the inode is zero length. Hence occasionally the preallocation
> is much, mcuh large than is necessary (e.g. 8GB for a 270 _byte_
^^^^^^^^^ typo
Otherwise looks good,
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the xfs
mailing list