aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs
diff options
context:
space:
mode:
authorMingming Cao <cmm@us.ibm.com>2006-03-26 01:37:59 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-26 08:57:01 -0800
commitd48589bfad0e60bff0aa3f9e4875983f607bd44b (patch)
tree3ec6d645847ea451b15abd6c9f1f27ce93591fd9 /fs/reiserfs
parentfaa569763a7753e0a7cb8fd3919a62c0f7cc1e3c (diff)
downloadkernel_samsung_smdk4412-d48589bfad0e60bff0aa3f9e4875983f607bd44b.zip
kernel_samsung_smdk4412-d48589bfad0e60bff0aa3f9e4875983f607bd44b.tar.gz
kernel_samsung_smdk4412-d48589bfad0e60bff0aa3f9e4875983f607bd44b.tar.bz2
[PATCH] ext3_get_blocks: Adjust reservation window size for mblocks
Optimize the block reservation and the multiple block allocation: with the knowledge of the total number of blocks ahead, set or adjust the reservation window size properly (based on the number of blocks needed) before block allocation happens: if there isn't any reservation yet, make sure the reservation window equals to or greater than the number of blocks needed, before create an reservation window; if a reservation window is already exists, try to extends the window size to match the number of blocks to allocate. This could increase the possibility of completing multiple blocks allocation in a single request, as blocks are only allocated in the range of the inode's reservation window. 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>
Diffstat (limited to 'fs/reiserfs')
0 files changed, 0 insertions, 0 deletions