summaryrefslogtreecommitdiff
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-09-21 05:37:46 (GMT)
committerNeilBrown <neilb@suse.de>2011-09-21 05:37:46 (GMT)
commit2585f3ef8c7fffe750ef1feb2775023716d799a8 (patch)
tree3faccf1f22eb01bea55f49926a913446134df1d2 /drivers/md/md.h
parent5a537df44d52331a3d2792ca21a296959bd2ac3a (diff)
downloadlinux-2585f3ef8c7fffe750ef1feb2775023716d799a8.tar.xz
md/bitmap: improve handling of 'allclean'.
The 'allclean' flag is used to cache the fact that there is nothing to do, so we can avoid waking up and scanning the bitmap regularly. The two sorts of pages that might need the attention of the bitmap daemon are BITMAP_PAGE_PENDING and BITMAP_PAGE_NEEDWRITE pages. So make sure allclean reflects exactly when there are none of those. So: set it before scanning all pages with either bit set. clear it whenever these bits are set clear it when we desire not to clear one of these bits. don't clear it any other time. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.h')
0 files changed, 0 insertions, 0 deletions