ext4: make the preallocation size be a multiple of stripe size
authorDan Ehrenberg <dehrenberg@google.com>
Mon, 18 Jul 2011 01:11:30 +0000 (21:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 18 Jul 2011 01:11:30 +0000 (21:11 -0400)
commitd7a1fee135771e6e5185642bdc17df19bbdbcc48
treec037586b0db8324bac4ef11bcd8b3b1a631bbdf2
parent265c6a0f9290c8f470b839257dc6af3c46b24da1
ext4: make the preallocation size be a multiple of stripe size

Previously, if a stripe width was provided, then it would be used
as the preallocation granularity, with no santiy checking and no
way to override this. Now, mb_prealloc_size defaults to the smallest
multiple of stripe size that is greater than or equal to the old
default mb_prealloc_size, and this can be overridden with the sysfs
interface.

Signed-off-by: Dan Ehrenberg <dehrenberg@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mballoc.c