Skip to content

Commit

Permalink
slob: use DIV_ROUND_UP where possible
Browse files Browse the repository at this point in the history
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
  • Loading branch information
Sasha Levin authored and Pekka Enberg committed Jul 7, 2013
1 parent 318df36 commit a6d7815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6d7815

Please sign in to comment.