From: NeilBrown Date: Thu, 7 May 2009 02:47:19 +0000 (+1000) Subject: md: fix loading of out-of-date bitmap. X-Git-Tag: v2.6.30-rc5~8^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b74fd2826c5acce20e6f691437b2d19372bc2057;p=pandora-kernel.git md: fix loading of out-of-date bitmap. When md is loading a bitmap which it knows is out of date, it fills each page with 1s and writes it back out again. However the write_page call makes used of bitmap->file_pages and bitmap->last_page_size which haven't been set correctly yet. So this can sometimes fail. Move the setting of file_pages and last_page_size to before the call to write_page. This bug can cause the assembly on an array to fail, thus making the data inaccessible. Hence I think it is a suitable candidate for -stable. Cc: stable@kernel.org Reported-by: Vojtech Pavlik Signed-off-by: NeilBrown --- Reading git-diff-tree failed