aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2009-12-13 20:49:52 -0500
committerNeilBrown <neilb@suse.de>2009-12-13 20:51:41 -0500
commitc3d9714e88c8685cf9bc837c3241fc005f95fb82 (patch)
treedd11e16ec911983bb7452bb4fb092769ba612e3b /drivers/md/md.h
parent709ae4879ae33628ded276ce7da8cd5acfec476b (diff)
md: collect bitmap-specific fields into one structure.
In preparation for making bitmap fields configurable via sysfs, start tidying up by making a single structure to contain the configuration fields. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index cb036868a9e9..50e62ef32e9d 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -280,16 +280,18 @@ struct mddev_s
280 unsigned int max_write_behind; /* 0 = sync */ 280 unsigned int max_write_behind; /* 0 = sync */
281 281
282 struct bitmap *bitmap; /* the bitmap for the device */ 282 struct bitmap *bitmap; /* the bitmap for the device */
283 struct file *bitmap_file; /* the bitmap file */ 283 struct {
284 long bitmap_offset; /* offset from superblock of 284 struct file *file; /* the bitmap file */
285 * start of bitmap. May be 285 long offset; /* offset from superblock of
286 * negative, but not '0' 286 * start of bitmap. May be
287 */ 287 * negative, but not '0'
288 long default_bitmap_offset; /* this is the offset to use when 288 */
289 * hot-adding a bitmap. It should 289 long default_offset; /* this is the offset to use when
290 * eventually be settable by sysfs. 290 * hot-adding a bitmap. It should
291 */ 291 * eventually be settable by sysfs.
292 struct mutex bitmap_mutex; 292 */
293 struct mutex mutex;
294 } bitmap_info;
293 295
294 struct list_head all_mddevs; 296 struct list_head all_mddevs;
295 297