]> bbs.cooldavid.org Git - net-next-2.6.git/commit
md/bitmap: prepare for storing write-intent-bitmap via dm-dirty-log.
authorNeilBrown <neilb@suse.de>
Tue, 1 Jun 2010 09:37:34 +0000 (19:37 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 26 Jul 2010 03:21:34 +0000 (13:21 +1000)
commite384e58549a2e9a83071ad80280c1a9053cfd84c
tree805619143612ddc8cc71a45dd4522393c23a576f
parentef4256733506f2459a0c436b62267d22a3f0cec6
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>
drivers/md/bitmap.c
drivers/md/bitmap.h
drivers/md/md.h