Commit 53845270 authored by NeilBrown's avatar NeilBrown

md: fix bitmap-on-external-file bug.

commit a2ed9615
fixed a bug with 'internal' bitmaps, but in the process broke
'in a file' bitmaps.  So they are broken in 2.6.28

This fixes it, and needs to go in 2.6.28-stable.
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Cc: stable@kernel.org
parent 9e42d0cf
...@@ -964,7 +964,9 @@ static int bitmap_init_from_disk(struct bitmap *bitmap, sector_t start) ...@@ -964,7 +964,9 @@ static int bitmap_init_from_disk(struct bitmap *bitmap, sector_t start)
*/ */
page = bitmap->sb_page; page = bitmap->sb_page;
offset = sizeof(bitmap_super_t); offset = sizeof(bitmap_super_t);
read_sb_page(bitmap->mddev, bitmap->offset, if (!file)
read_sb_page(bitmap->mddev,
bitmap->offset,
page, page,
index, count); index, count);
} else if (file) { } else if (file) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment