Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6d78159 authored by Sasha Levin's avatar Sasha Levin Committed by Pekka Enberg
Browse files

slob: use DIV_ROUND_UP where possible

parent 318df36e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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