aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2015-10-01 06:03:38 +0000
committerNeilBrown <[email protected]>2015-10-02 07:24:13 +0000
commitda6fb7a9e5bd6f04f7e15070f630bdf1ea502841 (patch)
treecc7f1bf1d5b2e213bc3ff759d8dcf3c318907da7 /lib/string.c
parentmd/raid1: Avoid raid1 resync getting stuck (diff)
downloadkernel-da6fb7a9e5bd6f04f7e15070f630bdf1ea502841.tar.gz
kernel-da6fb7a9e5bd6f04f7e15070f630bdf1ea502841.zip
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: [email protected] (v4.1+) Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions