ext4: tune mballoc's default group prealloc size for bigalloc file systems
authorTheodore Ts'o <tytso@mit.edu>
Fri, 9 Sep 2011 23:02:51 +0000 (19:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 9 Sep 2011 23:02:51 +0000 (19:02 -0400)
commit27baebb849d46d901e756e6502b0a65a62e43771
treeed72a295f62656beb29038358d99902b55b3438f
parentf975d6bcc7a698a10cc755115e27d3612dcfe322
ext4: tune mballoc's default group prealloc size for bigalloc file systems

The default group preallocation size had been previously set to 512
blocks/clusters, regardless of the block/cluster size.  This is
probably too big for large cluster sizes.  So adjust the default so
that it is 2 megabytes or 32 clusters, whichever is larger.

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