md/bitmap: don't pass -1 to bitmap_storage_alloc.
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: b97e9257 ("Use separate bitmaps for each nodes in the cluster") Cc: email@example.com (v4.1+) Signed-off-by: NeilBrown <firstname.lastname@example.org>
Showing with 2 additions and 1 deletion