]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: add bitmap_resize function to allow bitmap resizing.
authorNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:58 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:58 +0000 (10:57 +1000)
commitc5cf3ce871830df6757795f4ab9ee15ee7794e84
tree49c2ccd2bf113e66d330dbe0ca3bf9f28c7f67ba
parent3232afd55b91b2a9ad86315eeb8875355e493bf1
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.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c
drivers/md/bitmap.h