diff options
author | Goldwyn Rodrigues <rgoldwyn@suse.de> | 2015-07-01 12:19:56 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.com> | 2015-07-24 13:37:55 +1000 |
commit | 33e38ac6887d975fe2635c7fcaefb6d5495cb2e1 (patch) | |
tree | 453697d25fb88f8d55d720cddf3a3df0a1c696f5 /drivers/md/md-cluster.c | |
parent | b0c26a79d6993b280931f8e2b406ca4b220bb58f (diff) | |
download | linux-33e38ac6887d975fe2635c7fcaefb6d5495cb2e1.tar.gz linux-33e38ac6887d975fe2635c7fcaefb6d5495cb2e1.tar.bz2 linux-33e38ac6887d975fe2635c7fcaefb6d5495cb2e1.zip |
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 <rgoldwyn@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'drivers/md/md-cluster.c')
0 files changed, 0 insertions, 0 deletions