summaryrefslogtreecommitdiffstats
path: root/fs/freevxfs/vxfs_fshead.h
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2013-04-03 23:33:28 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-04-03 23:33:28 -0400
commitbe8981be6b820b637c88978b2241738487a98ebf (patch)
tree642810f46ba5ce06e9d66d915fbf304556e251bc /fs/freevxfs/vxfs_fshead.h
parentbc2d9db48c95ec6c9c5ecc97ddc61343d751f219 (diff)
downloadop-kernel-dev-be8981be6b820b637c88978b2241738487a98ebf.zip
op-kernel-dev-be8981be6b820b637c88978b2241738487a98ebf.tar.gz
ext4: try to prepend extent to the existing one
Currently when inserting extent in ext4_ext_insert_extent() we would only try to to see if we can append new extent to the found extent. If we can not, then we proceed with adding new extent into the extent tree, but then possibly merging it back again. We can avoid this situation by trying to append and prepend new extent to the existing ones. However since the new extent can be on either sides of the existing extent, we have to pick the right extent to try to append/prepend to. This patch adds the conditions to pick the right extent to append/prepend to and adds the actual prepending condition as well. This will also eliminate the need to use "reserved" block for possibly growing extent tree. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/freevxfs/vxfs_fshead.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud