ext4: add a function merging extents right and left
commit197217a5af79c23609da03eda2a52ee8603eec52
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Tue, 3 May 2011 15:45:29 +0000 (3 11:45 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 3 May 2011 15:45:29 +0000 (3 11:45 -0400)
treedf05721599f21c46fb4879ec3195431dd9a45804
parentdf5e6223407e3e645065c4bd968fee007f0e0287
ext4: add a function merging extents right and left

1) Rename ext4_ext_try_to_merge() to ext4_ext_try_to_merge_right().

2) Add a new function ext4_ext_try_to_merge() which tries to merge
   an extent both left and right.

3) Use the new function in ext4_ext_convert_unwritten_endio() and
   ext4_ext_insert_extent().

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
Tested-by: Allison Henderson <achender@linux.vnet.ibm.com>
fs/ext4/extents.c