Skip to content
Commit d60b479d authored by NeilBrown's avatar NeilBrown
Browse files

md/bitmap: add bitmap_resize function to allow bitmap resizing.



This function will allocate the new data structures and copy
bits across from old to new, allowing for the possibility that the
chunksize has changed.

Use the same function for performing the initial allocation
of the structures.  This improves test coverage.

When bitmap_resize is used to resize an existing bitmap, it
only copies '1' bits in, not '0' bits.
So when allocating the bitmap, ensure everything is initialised
to ZERO.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 15702d7f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment