]> git.baikalelectronics.ru Git - kernel.git/commit
md: resolve confusion of MD_CHANGE_CLEAN
authorNeilBrown <neilb@suse.de>
Mon, 30 Aug 2010 07:33:34 +0000 (17:33 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 30 Aug 2010 08:06:21 +0000 (18:06 +1000)
commit8e3c1ddf510f6bd71da0a707e7c8efe75f75ebac
tree173e72d08b2070d496c203a6d5156b9a2ad2808c
parent418d0a7503c96d024f0a523be2bddeeb50bf37d4
md: resolve confusion of MD_CHANGE_CLEAN

MD_CHANGE_CLEAN is used for two different purposes and this leads to
confusion.
One of the purposes is largely mirrored by MD_CHANGE_PENDING which is
not used for anything else, so have MD_CHANGE_PENDING take over that
purpose fully.

The two purposes are:
 1/ tell md_update_sb that an update is needed and that it is just a
   clean/dirty transition.
 2/ tell user-space that an transition from clean to dirty is pending
    (something wants to write), and tell te kernel (by clearin the
    flag) that the transition is OK.

The first purpose remains wit MD_CHANGE_CLEAN, the second is moved
fully to MD_CHANGE_PENDING.

This means that various places which conditionally set or cleared
MD_CHANGE_CLEAN no longer need to be conditional.

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