Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

slob: use DIV_ROUND_UP where possible

Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>

authored by

Sasha Levin and committed by
Pekka Enberg
a6d78159 318df36e

+1 -1
+1 -1
mm/slob.c
··· 122 122 } 123 123 124 124 #define SLOB_UNIT sizeof(slob_t) 125 - #define SLOB_UNITS(size) (((size) + SLOB_UNIT - 1)/SLOB_UNIT) 125 + #define SLOB_UNITS(size) DIV_ROUND_UP(size, SLOB_UNIT) 126 126 127 127 /* 128 128 * struct slob_rcu is inserted at the tail of allocated slob blocks, which