slab: use 32-bit arithmetic in freelist_randomize()
authorAlexey Dobriyan <[email protected]>
Thu, 5 Apr 2018 23:21:46 +0000 (16:21 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:24 +0000 (21:36 -0700)
commit302d55d51d04ab92f8b3f6a89d3424299e3efdf7
tree7e0e2b1e8b625cb48ebddf7106bdb3bce154cc06
parent870b1fbb036c0e115aeb8a48478643c16b73d204
slab: use 32-bit arithmetic in freelist_randomize()

SLAB doesn't support 4GB+ of objects per slab, therefore randomization
doesn't need size_t.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexey Dobriyan <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slab_common.c