From: NeilBrown Date: Wed, 23 May 2007 20:58:10 +0000 (-0700) Subject: md: don't write more than is required of the last page of a bitmap X-Git-Tag: v2.6.22-rc3~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab6085c795a71b6a21afe7469d30a365338add7a;p=pandora-kernel.git md: don't write more than is required of the last page of a bitmap It is possible that real data or metadata follows the bitmap without full page alignment. So limit the last write to be only the required number of bytes, rounded up to the hard sector size of the device. Signed-off-by: Neil Brown Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed