summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2019-03-26 15:31:57 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-03-27 08:58:54 -0400
commite5e9c17efe77dbbc9b041a517705e0b6c1866110 (patch)
treed191db7bfce550a5368d22d392b0de260cd1f73c /lib
parentfe8ac4c919832f77fa96e90caef8559088ec8f40 (diff)
parenta2cddfe2ce6e9108341820fff8af46713685b2cb (diff)
Merge tag 'v4.19.31' into v4.19-rt
This is the 4.19.31 stable release Conflicts: mm/swap.c
Diffstat (limited to 'lib')
-rw-r--r--lib/assoc_array.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/assoc_array.c b/lib/assoc_array.c
index c6659cb37033..59875eb278ea 100644
--- a/lib/assoc_array.c
+++ b/lib/assoc_array.c
@@ -768,9 +768,11 @@ all_leaves_cluster_together:
new_s0->index_key[i] =
ops->get_key_chunk(index_key, i * ASSOC_ARRAY_KEY_CHUNK_SIZE);
- blank = ULONG_MAX << (level & ASSOC_ARRAY_KEY_CHUNK_MASK);
- pr_devel("blank off [%zu] %d: %lx\n", keylen - 1, level, blank);
- new_s0->index_key[keylen - 1] &= ~blank;
+ if (level & ASSOC_ARRAY_KEY_CHUNK_MASK) {
+ blank = ULONG_MAX << (level & ASSOC_ARRAY_KEY_CHUNK_MASK);
+ pr_devel("blank off [%zu] %d: %lx\n", keylen - 1, level, blank);
+ new_s0->index_key[keylen - 1] &= ~blank;
+ }
/* This now reduces to a node splitting exercise for which we'll need
* to regenerate the disparity table.