linux/fs/ext4
Lukas Czerner be8981be6b 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>
2013-04-03 23:33:28 -04:00
..
acl.c
acl.h
balloc.c ext4: introduce ext4_get_group_number() 2013-04-03 23:32:34 -04:00
bitmap.c
block_validity.c
dir.c
ext4.h ext4: introduce ext4_get_group_number() 2013-04-03 23:32:34 -04:00
ext4_extents.h
ext4_jbd2.c ext4: add might_sleep() annotations 2013-04-03 22:00:52 -04:00
ext4_jbd2.h ext4: fix journal callback list traversal 2013-04-03 22:08:52 -04:00
extents.c ext4: try to prepend extent to the existing one 2013-04-03 23:33:28 -04:00
extents_status.c
extents_status.h
file.c
fsync.c ext4/jbd2: don't wait (forever) for stale tid caused by wraparound 2013-04-03 22:02:52 -04:00
hash.c
ialloc.c
indirect.c ext4: refactor truncate code 2013-04-03 12:47:17 -04:00
inline.c
inode.c ext4/jbd2: don't wait (forever) for stale tid caused by wraparound 2013-04-03 22:02:52 -04:00
ioctl.c ext4: support simple conversion of extent-mapped inodes to use i_blocks 2013-04-03 22:04:52 -04:00
Kconfig
Makefile
mballoc.c ext4: introduce ext4_get_group_number() 2013-04-03 23:32:34 -04:00
mballoc.h
migrate.c
mmp.c
move_extent.c
namei.c
page-io.c
resize.c ext4: introduce ext4_get_group_number() 2013-04-03 23:32:34 -04:00
super.c ext4: make ext4_block_in_group() much more efficient 2013-04-03 22:12:52 -04:00
symlink.c
truncate.h
xattr.c
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c