Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
md/bitmap: don't pass -1 to bitmap_storage_alloc.
BugLink: http://bugs.launchpad.net/bugs/1509886 commit da6fb7a 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: b97e925 ("Use separate bitmaps for each nodes in the cluster") Signed-off-by: NeilBrown <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Tim Gardner <[email protected]> Signed-off-by: Brad Figg <[email protected]>
- Loading branch information