Whamcloud - gitweb
libext2fs: fix rb_resize_bmap to handle the padding bits
authorTheodore Ts'o <tytso@mit.edu>
Sat, 26 Jul 2014 04:45:28 +0000 (00:45 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 26 Jul 2014 04:48:29 +0000 (00:48 -0400)
commit2dbf34e50562d08d5da4d3f373f3bc0b2fd46728
tree91eb8e220067c0fa9881a44085c6bac2b44d7db6
parent188949d7ce3aaccec1437a5fcb0ae288a2674996
libext2fs: fix rb_resize_bmap to handle the padding bits

The bits between end and real_end are set as a safety measure for the
kernel when it uses the bit scan instructions.  We need to take this
into account when shrinking or growing the block allocation bitmap,
before we can safely use rbtree bitmaps in resize2fs.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/blkmap64_rb.c