[PATCH] ext3_get_blocks: support multiple blocks allocation in ext3_new_block()
authorMingming Cao <cmm@us.ibm.com>
Sun, 26 Mar 2006 09:37:57 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:57:01 +0000 (08:57 -0800)
commitb54e41ec17ae91dce174eb5a3515e7af4a440d42
treeaa98a38e05188b204950eb0756fb792675951b0d
parentb47b24781c59565f45acd765dc995a752d561e96
[PATCH] ext3_get_blocks: support multiple blocks allocation in ext3_new_block()

Change ext3_try_to_allocate() (called via ext3_new_blocks()) to try to
allocate the requested number of blocks on a best effort basis: After
allocated the first block, it will always attempt to allocate the next few(up
to the requested size and not beyond the reservation window) adjacent blocks
at the same time.

Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext3/balloc.c
include/linux/ext3_fs.h