md/bitmap: record the space available for the bitmap in the superblock.
authorNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:34 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:34 +0000 (13:55 +1000)
commit1dff2b87a34a1ac1d1898ea109bf97ed396aca53
tree041386083d0b7242aa802d6545dd86c51c2a405e
parent63aced61023a054825ffd6e33ac1ab99036dadd2
md/bitmap: record the space available for the bitmap in the superblock.

Now that bitmaps can grow and shrink it is best if we record
how much space is available.  This means that when
we reduce the size of the bitmap we won't "lose" the space
for late when we might want to increase the size of the bitmap
again.

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