Revision b8fc82630ae289bb4e661567808afc59e3298dce authored by Dave Chinner on 27 January 2011, 01:14:12 UTC, committed by Alex Elder on 28 January 2011, 15:05:35 UTC
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, much larger than is necessary (e.g. 8GB for a 270 _byte_
file). Ensure we don't even pass a zero value to this function so
the result of preallocation is always the desired size.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
1 parent e34a314
History

README.AddingFirmware

back to top