]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: add new 'space' attribute for bitmaps.
authorNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:53 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:53 +0000 (10:57 +1000)
commitdfb8d5d76f9debf0e92b84a8e1cd6b3a5d785ad0
tree3e905407687c3796d87c0a0dc6c87410a6913bc0
parent8ffc42297f167234a87165bc1d2c18409eecd3a7
md/bitmap: add new 'space' attribute for bitmaps.

If we are to allow bitmaps to be resized when the array is resized,
we need to know how much space there is.

So create an attribute to store this information and set appropriate
defaults.

It can be set more precisely via sysfs, or future metadata extensions
may allow it to be recorded.

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