]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad3ba74f922529897b0281d8c80a6b3788e30486
treec037586b0db8324bac4ef11bcd8b3b1a631bbdf2
parent99736bbc93224d125eecb19df96b946a5214a3ee
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