aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-06-01 05:37:34 -0400
committerNeilBrown <neilb@suse.de>2010-07-25 23:21:34 -0400
commite384e58549a2e9a83071ad80280c1a9053cfd84c (patch)
tree805619143612ddc8cc71a45dd4522393c23a576f /drivers/md/md.h
parentef4256733506f2459a0c436b62267d22a3f0cec6 (diff)
md/bitmap: prepare for storing write-intent-bitmap via dm-dirty-log.
This allows md/raid5 to fully work as a dm target. Normally md uses a 'filemap' which contains a list of pages of bits each of which may be written separately. dm-log uses and all-or-nothing approach to writing the log, so when using a dm-log, ->filemap is NULL and the flags normally stored in filemap_attr are stored in ->logattrs instead. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index 0a850780b5d1..cccbadb31bae 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -317,6 +317,11 @@ struct mddev_s
317 * hot-adding a bitmap. It should 317 * hot-adding a bitmap. It should
318 * eventually be settable by sysfs. 318 * eventually be settable by sysfs.
319 */ 319 */
320 /* When md is serving under dm, it might use a
321 * dirty_log to store the bits.
322 */
323 struct dm_dirty_log *log;
324
320 struct mutex mutex; 325 struct mutex mutex;
321 unsigned long chunksize; 326 unsigned long chunksize;
322 unsigned long daemon_sleep; /* how many jiffies between updates? */ 327 unsigned long daemon_sleep; /* how many jiffies between updates? */