Whamcloud - gitweb
Fix ext2fs_extent_insert when at last extent in node
authorEric Sandeen <sandeen@redhat.com>
Tue, 8 Apr 2008 03:00:58 +0000 (22:00 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 17 Apr 2008 21:16:29 +0000 (17:16 -0400)
commit5e057d5cad3e0f3bd9faa3c1124a3a592cb32919
treee74ee95be73d33692b1ae631f1356f8ab0f33d34
parent108e62e3162fddd423e877dda8faebe8bd96ead5
Fix ext2fs_extent_insert when at last extent in node

ext2fs_extent_insert() only did a memmove if path->left
was > 0, but if we are at the last extent in the node,
path->left == 0, and this node must be moved before the
current extent is replaced with the newly inserted node.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/extent.c