Files
linux/drivers/md
NeilBrown 915c420ddf md/bitmap: be more consistent when setting new bits in memory bitmap.
For each active region corresponding to a bit in the bitmap with have
a 14bit counter (and some flags).
This counts
   number of active writes + bit in the on-disk bitmap + delay-needed.

The "delay-needed" is because we always want a delay before clearing a
bit.  So the number here is normally number of active writes plus 2.
If there have been no writes for a while, we drop to 1.
If still no writes we clear the bit and drop to 0.

So for consistency, when setting bit from the on-disk bitmap or by
request from user-space it is best to set the counter to '2' to start
with.

In particular we might also set the NEEDED_MASK flag at this time, and
in all other cases NEEDED_MASK is only set when the counter is 2 or
more.

Signed-off-by: NeilBrown <neilb@suse.de>
2011-12-23 10:17:51 +11:00
..
2011-10-31 20:19:09 +00:00
2011-08-02 12:32:01 +01:00
2011-10-31 20:19:04 +00:00
2010-08-12 04:14:11 +01:00
2011-08-02 12:32:02 +01:00
2011-07-26 16:49:47 -07:00
2011-03-31 11:26:23 -03:00
2011-03-24 13:54:35 +00:00
2011-10-31 20:19:04 +00:00
2011-10-31 20:21:18 +00:00
2010-08-12 04:14:12 +01:00
2011-10-31 20:19:04 +00:00
2011-10-31 20:21:18 +00:00
2011-10-31 20:21:18 +00:00