Whamcloud - gitweb
libext2fs: Avoid creating unneeded new extents in ext2fs_extent_set_bmap()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 20 Jul 2009 03:37:44 +0000 (23:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 Jul 2009 03:37:44 +0000 (23:37 -0400)
commit8b5ed492de2584ce255cc87f054e987bf4e9c5f3
tree0cc2968b2c670f3f27e591d96d5da58a00ebde6d
parent64cb68b3eab55f532a1b07e3778b75631e85f44a
libext2fs: Avoid creating unneeded new extents in ext2fs_extent_set_bmap()

Avoiding inserting a new extent if it is possible to merge the new
block to the beginning or the end of the previous or next extent.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/extent.c