[PATCH] ext3_get_blocks: multiple block allocation
authorMingming Cao <cmm@us.ibm.com>
Sun, 26 Mar 2006 09:37:56 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:57:01 +0000 (08:57 -0800)
commitb47b24781c59565f45acd765dc995a752d561e96
treebd18b4f13fef4e162429b1e1ba14841d4a11af3b
parent89747d369d34e333b9b60f10f333a0b727b4e4e2
[PATCH] ext3_get_blocks: multiple block allocation

Add support for multiple block allocation in ext3-get-blocks().

Look up the disk block mapping and count the total number of blocks to
allocate, then pass it to ext3_new_block(), where the real block allocation is
performed.  Once multiple blocks are allocated, prepare the branch with those
just allocated blocks info and finally splice the whole branch into the block
mapping tree.

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/inode.c