From: NeilBrown Date: Tue, 22 May 2012 03:55:25 +0000 (+1000) Subject: md/bitmap: add bitmap_resize function to allow bitmap resizing. X-Git-Tag: v3.5-rc1~110^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d60b479d177a5735b6b4db6ee5280ef6653f50e7;p=pandora-kernel.git 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: NeilBrown --- Reading git-diff-tree failed