aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-05-21 23:55:07 -0400
committerNeilBrown <neilb@suse.de>2012-05-21 23:55:07 -0400
commit6409bb05a9831f6af36a20b97cda13059c2ef1b6 (patch)
treec997526bd60d3fb5cafea604e5b240c2479e20d9 /drivers/md/md.h
parentbf07bb7d5be813630d3530be274b3324f85e310c (diff)
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>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index 360937389e64..7b4a3c318cae 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -393,10 +393,13 @@ struct mddev {
393 * For external metadata, offset 393 * For external metadata, offset
394 * from start of device. 394 * from start of device.
395 */ 395 */
396 unsigned long space; /* space available at this offset */
396 loff_t default_offset; /* this is the offset to use when 397 loff_t default_offset; /* this is the offset to use when
397 * hot-adding a bitmap. It should 398 * hot-adding a bitmap. It should
398 * eventually be settable by sysfs. 399 * eventually be settable by sysfs.
399 */ 400 */
401 unsigned long default_space; /* space available at
402 * default offset */
400 struct mutex mutex; 403 struct mutex mutex;
401 unsigned long chunksize; 404 unsigned long chunksize;
402 unsigned long daemon_sleep; /* how many jiffies between updates? */ 405 unsigned long daemon_sleep; /* how many jiffies between updates? */