From: Sasha Levin Date: Thu, 20 Dec 2012 19:11:39 +0000 (-0500) Subject: slob: use DIV_ROUND_UP where possible X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a6d78159f8a717263bea71bef738256dafe6260d;p=linux-beck.git slob: use DIV_ROUND_UP where possible Acked-by: Christoph Lameter Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- 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