From: NeilBrown Date: Mon, 25 May 2009 23:41:17 +0000 (+1000) Subject: md: bitmap: improve bitmap maintenance code. X-Git-Tag: v2.6.30-rc8~58^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be512691036cc989c11d0f418187efbbf14468e6;p=pandora-kernel.git md: bitmap: improve bitmap maintenance code. The code for checking which bits in the bitmap can be cleared has 2 problems: 1/ it repeatedly takes and drops a spinlock, where it would make more sense to just hold on to it most of the time. 2/ it doesn't make use of some opportunities to skip large sections of the bitmap This patch fixes those. It will only affect CPU consumption, not correctness. Signed-off-by: NeilBrown --- Reading git-diff-tree failed