]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] md: make sure md bitmap is cleared on a clean start.
authorNeilBrown <neilb@cse.unsw.edu.au>
Wed, 22 Jun 2005 00:17:18 +0000 (17:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 02:07:44 +0000 (19:07 -0700)
commit0f622373deee3d9418f4e37cd4ef4b52b87c3130
treeca5037bfa8c51f61fe2c7627f2cbed37697af882
parentb82130c6ef6866e5d845482e18c23ebbf6bf4e9c
[PATCH] md: make sure md bitmap is cleared on a clean start.

As the array-wide clean bit (in the superblock) is set more agressively than
the bits in the bitmap are cleared, it is possible to have an array which is
clean despite there being bits set in the bitmap.

These bits will currently never get cleared, as they can only be cleared by a
resync pass, which never happens.

No, when reading bits from disk, be aware of whether the whole array is known
to be in sync, and act accordingly.

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/bitmap.c