OSDN Git Service

Teach ext2fs_extent_delete() to remove an empty extent node from the tree
authorEric Sandeen <sandeen@redhat.com>
Tue, 20 May 2008 21:13:41 +0000 (16:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 2 Jun 2008 22:52:12 +0000 (18:52 -0400)
commitc802ad9ed6c6756dfb65d31f0f559e90df3825d5
tree3366d42e09fdc8556719eb5f41a88dcf756093f4
parentf4e9963c0966734d8dc16877753698193b83cd65
Teach ext2fs_extent_delete() to remove an empty extent node from the tree

ext2fs_extent_delete() will also update the parent node and decrement
the inode block count.

Passing in the EXT2_EXTENT_DELETE_KEEP_EMPTY flag will allow the empty
node to remain.

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