]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - mm/slob.c
slob: use DIV_ROUND_UP where possible
[mirror_ubuntu-zesty-kernel.git] / mm / slob.c
index a99fdf7a0907db8f0f12909435e7da714f917d9a..f729c46639fa6606a9591d1f9891a928f801f47d 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