linux/drivers/md/bitmap.c
NeilBrown 583c46f9ce md/bitmap: don't pass -1 to bitmap_storage_alloc.
commit da6fb7a9e5 upstream.

Passing -1 to bitmap_storage_alloc() causes page->index to be set to
-1, which is quite problematic.

So only pass ->cluster_slot if mddev_is_clustered().

Fixes: b97e92574c ("Use separate bitmaps for each nodes in the cluster")
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-10-22 14:43:26 -07:00

2443 lines
64 KiB