md/bitmap: update dirty flag when bitmap bits are explicitly set.
authorNeilBrown <neilb@suse.de>
Mon, 14 Dec 2009 01:49:56 +0000 (12:49 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 14 Dec 2009 01:51:41 +0000 (12:51 +1100)
commitffa23322b1596bb1a115e767d4251b62842adc23
tree137daf8289ae910b3c6eb4b38de98cc957f60233
parentece5cff0da9e696c360fff592cb5f51b6419e4d6
md/bitmap: update dirty flag when bitmap bits are explicitly set.

There is a sysfs file which allows bits in the write-intent
bitmap to be explicit set - indicating that the block is thought
to be 'dirty'.
When this happens we should really set recovery_cp backwards
to include the block to reflect this dirtiness.

In particular, a 'resync' process will refuse to start if
recovery_cp is beyond the end of the array, so this is needed
to allow a resync to be triggered.

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