Skip to content

Commit a6d7815

Browse files
sashalevinpenberg
authored andcommitted
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>
1 parent 318df36 commit a6d7815

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mm/slob.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static inline void clear_slob_page_free(struct page *sp)
122122
}
123123

124124
#define SLOB_UNIT sizeof(slob_t)
125-
#define SLOB_UNITS(size) (((size) + SLOB_UNIT - 1)/SLOB_UNIT)
125+
#define SLOB_UNITS(size) DIV_ROUND_UP(size, SLOB_UNIT)
126126

127127
/*
128128
* struct slob_rcu is inserted at the tail of allocated slob blocks, which

0 commit comments

Comments
 (0)