projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
318df36
)
slob: use DIV_ROUND_UP where possible
author
Sasha Levin
<sasha.levin@oracle.com>
Thu, 20 Dec 2012 19:11:39 +0000
(14:11 -0500)
committer
Pekka Enberg
<penberg@kernel.org>
Sun, 7 Jul 2013 15:50:05 +0000
(18:50 +0300)
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slob.c
patch
|
blob
|
history
diff --git
a/mm/slob.c
b/mm/slob.c
index
a99fdf7
..
f729c46
100644
(file)
--- 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