ext4: reuse path object in ext4_move_extents()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 1 Sep 2014 18:42:09 +0000 (14:42 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Sep 2014 18:42:09 +0000 (14:42 -0400)
commit3bdf14b4d7a3a7416577e9f9f421dbf29b5b6747
treeee40c6911acc6ba9a52af237befa4c9cf926611e
parentee4bd0d963b75cbad9bfb59b547146671c7a655a
ext4: reuse path object in ext4_move_extents()

Reuse the path object in ext4_move_extents() so we don't unnecessarily
free and reallocate it.

Also clean up the get_ext_path() wrapper so that it has the same
semantics of freeing the path object on error as ext4_ext_find_extent().

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/move_extent.c