Whamcloud - gitweb
libext2fs: don't hang on to unmapped block if extent tree update fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 6 Feb 2014 20:32:18 +0000 (15:32 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Feb 2014 20:32:20 +0000 (15:32 -0500)
commit6225a154d2616edcd13885797ed5e1c0cc51e0b7
tree16f328d6ae6b0dc4499d95efb999cafdf6f2ccc2
parent3c890ee96ebc3f4ca05668e272531b46118d4cc4
libext2fs: don't hang on to unmapped block if extent tree update fails

If we're doing a BMAP_ALLOC allocation and the extent tree update
fails, there's no point in hanging on to the newly allocated block.
So, free it to make fsck happy.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/bmap.c