From: NeilBrown Date: Wed, 22 Jun 2005 00:17:22 +0000 (-0700) Subject: [PATCH] md: don't skip bitmap pages due to lack of bit that we just cleared. X-Git-Tag: v2.6.13-rc1~68^2~582^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa3163f81654fa057039258e32a6811147bf0c14;p=pandora-kernel.git [PATCH] md: don't skip bitmap pages due to lack of bit that we just cleared. When looking for pages that need cleaning we skip pages that don't have BITMAP_PAGE_CLEAN set. But if it is the 'current' page we will have cleared that bit ourselves, so skipping it is wrong. So: move the 'skip this page' inside 'if page != lastpage'. Also fold call of file_page_offset into the one place where the value (bit) is used. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed