]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/bitmap: rename and tidy up BITMAP_PAGE_CLEAN
authorNeilBrown <neilb@suse.de>
Thu, 1 Sep 2011 07:06:51 +0000 (17:06 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 1 Sep 2011 07:06:51 +0000 (17:06 +1000)
commit5d44c1c7a7dacd3323ac8fe7035fc6a7fc04ab95
tree71fc53519d0b7cc2a6819df24cfdbf2d160b2dae
parent5b8253fc0927668aa2a657b7b11f53b7c651ce37
md/bitmap: rename and tidy up BITMAP_PAGE_CLEAN

The flag 'BITMAP_PAGE_CLEAN' has a confusing name as it doesn't mean
that the page is clean, but rather that there are counters in the page
which allow bits in the bitmap to be cleared - i.e. maybe cleaning can
happen.

So change it to BITMAP_PAGE_PENDING and fix some irregularities:
 - Don't set it in bitmap_init_from_disk as bitmap_set_memory_bits
   sets it when needed
 - in bitmap_daemon_work, if we find a counter that is '1', but
   need_sync is set, then set BITMAP_PAGE_PENDING again (it was
   recently cleared) to ensure we don't forget about this bit.

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