From: NeilBrown Date: Mon, 14 Dec 2009 01:49:54 +0000 (+1100) Subject: md: support bitmap offset appropriate for external-metadata arrays. X-Git-Tag: v2.6.33-rc1~284^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6af949c5672115313cc3c976d85b0533f607d7e;p=pandora-kernel.git md: support bitmap offset appropriate for external-metadata arrays. For md arrays were metadata is managed externally, the kernel does not know about a superblock so the superblock offset is 0. If we want to have a write-intent-bitmap near the end of the devices of such an array, we should support sector_t sized offset. We need offset be possibly negative for when the bitmap is before the metadata, so use loff_t instead. Also add sanity check that bitmap does not overlap with data. Signed-off-by: NeilBrown --- Reading git-diff-tree failed