From: Wei Yang Date: Fri, 6 Nov 2015 02:45:46 +0000 (-0800) Subject: mm/slub: correct the comment in calculate_order() X-Git-Tag: v4.4-rc1~99^2~119 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=422ff4d70c1b3b2deed431dc095432dc691f4269;p=karo-tx-linux.git mm/slub: correct the comment in calculate_order() In calculate_order(), it tries to calculate the best order by adjusting the fraction and min_objects. On each iteration on min_objects, fraction iterates on 16, 8, 4. Which means the acceptable waste increases with 1/16, 1/8, 1/4. This patch corrects the comment according to the code. Signed-off-by: Wei Yang Acked-by: Christoph Lameter Cc: Pekka Enberg Cc: David Rientjes Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slub.c b/mm/slub.c index f614b5dc396b..a94b9f46261b 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2943,7 +2943,7 @@ static inline int calculate_order(int size, int reserved) * works by first attempting to generate a layout with * the best configuration and backing off gradually. * - * First we reduce the acceptable waste in a slab. Then + * First we increase the acceptable waste in a slab. Then * we reduce the minimum objects required in a slab. */ min_objects = slub_min_objects;