提交 a6d78159 编写于 作者: S Sasha Levin 提交者: Pekka Enberg

slob: use DIV_ROUND_UP where possible

Acked-by: NChristoph Lameter <cl@linux.com>
Signed-off-by: NSasha Levin <sasha.levin@oracle.com>
Signed-off-by: NPekka Enberg <penberg@kernel.org>
上级 318df36e
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册