summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2012-12-20 20:11:39 +0100
committerPekka Enberg <penberg@kernel.org>2013-07-07 17:50:05 +0200
commita6d78159f8a717263bea71bef738256dafe6260d (patch)
treea964d6bff4a5db8d0f1b11e36c8ad3e59a648883 /mm
parentslub: do not put a slab to cpu partial list when cpu_partial is 0 (diff)
downloadlinux-a6d78159f8a717263bea71bef738256dafe6260d.tar.xz
linux-a6d78159f8a717263bea71bef738256dafe6260d.zip
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/slob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slob.c b/mm/slob.c
index a99fdf7a0907..f729c46639fa 100644
--- a/mm/slob.c
+++ b/mm/slob.c
@@ -122,7 +122,7 @@ static inline void clear_slob_page_free(struct page *sp)
}
#define SLOB_UNIT sizeof(slob_t)
-#define SLOB_UNITS(size) (((size) + SLOB_UNIT - 1)/SLOB_UNIT)
+#define SLOB_UNITS(size) DIV_ROUND_UP(size, SLOB_UNIT)
/*
* struct slob_rcu is inserted at the tail of allocated slob blocks, which