| commit | da6fb7a9e5bd6f04f7e15070f630bdf1ea502841 | [log] [tgz] |
|---|---|---|
| author | NeilBrown <neilb@suse.com> | Thu Oct 01 16:03:38 2015 +1000 |
| committer | NeilBrown <neilb@suse.com> | Fri Oct 02 17:24:13 2015 +1000 |
| tree | cc7f1bf1d5b2e213bc3ff759d8dcf3c318907da7 | |
| parent | e8ff8bf09ff49733534ff3cee91bde030186055f [diff] |
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: b97e92574c0b ("Use separate bitmaps for each nodes in the cluster")
Cc: stable@vger.kernel.org (v4.1+)
Signed-off-by: NeilBrown <neilb@suse.com>