]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitc34b7179a736259bd068e21522a1a316b0a20614
treeaa98a38e05188b204950eb0756fb792675951b0d
parent3c9f66dd950f3baddfd471e33bb6b62e197a35e6
[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