From: Goldwyn Rodrigues Date: Wed, 1 Jul 2015 02:19:56 +0000 (+1000) Subject: md-cluster: fix bitmap sub-offset in bitmap_read_sb X-Git-Tag: omap-for-v4.3/fixes-merge-window~190^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33e38ac6887d975fe2635c7fcaefb6d5495cb2e1;p=pandora-kernel.git md-cluster: fix bitmap sub-offset in bitmap_read_sb bitmap_read_sb is modifying mddev->bitmap_info.offset. This works for the first bitmap read. However, when multiple bitmaps need to be opened by the same node, it ends up corrupting the offset. Fix it by using a local variable. Also, bitmap_read_sb is not required in bitmap_copy_from_slot since it is called in bitmap_create. Remove bitmap_read_sb(). Signed-off-by: Goldwyn Rodrigues Signed-off-by: NeilBrown --- Reading git-diff-tree failed