Whamcloud - gitweb
e2fsck: Don't double count an extent after deleting the last extent
authorTheodore Ts'o <tytso@mit.edu>
Fri, 30 May 2008 19:23:24 +0000 (15:23 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 May 2008 19:23:24 +0000 (15:23 -0400)
commit11de9261c156e2b274aab0997808a1eb3cf1ddb5
tree3222f540bc8619185e8df51cc4b8e284265a6fe0
parent73e5abcfe43d6bbd5b4793769d41d097ba7aed84
e2fsck: Don't double count an extent after deleting the last extent

ext2fs_extent_delete() will leave the extent handle pointing at the
next extent --- except if the last extent in the node.  To deal with
this last case, call ext2fs_get_extent_info() and stop scanning after
processing info->num_entries extents.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass1.c