From: Yinghao Xie Date: Wed, 15 Apr 2015 23:15:49 +0000 (-0700) Subject: mm/zsmalloc.c: fix comment for get_pages_per_zspage X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=888fa374e625f3ee8f3cc2efebf52939d3bb6da1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mm/zsmalloc.c: fix comment for get_pages_per_zspage Signed-off-by: Yinghao Xie Suggested-by: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 1833fc9e09cb..7a48e5568d46 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -731,7 +731,8 @@ out: * to form a zspage for each size class. This is important * to reduce wastage due to unusable space left at end of * each zspage which is given as: - * wastage = Zp - Zp % size_class + * wastage = Zp % class_size + * usage = Zp - wastage * where Zp = zspage size = k * PAGE_SIZE where k = 1, 2, ... * * For example, for size class of 3/8 * PAGE_SIZE, we should