diff options
author | Yinghao Xie <yinghao.xie@samsung.com> | 2015-04-15 23:15:49 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-15 23:35:21 (GMT) |
commit | 888fa374e625f3ee8f3cc2efebf52939d3bb6da1 (patch) | |
tree | 95442e2c2f2bae664bdec80a14ba51d36370e934 | |
parent | d02be50dba649b4246e0c1c4b7cb5d8a8d49de9a (diff) | |
download | linux-888fa374e625f3ee8f3cc2efebf52939d3bb6da1.tar.xz |
mm/zsmalloc.c: fix comment for get_pages_per_zspage
Signed-off-by: Yinghao Xie <yinghao.xie@sumsung.com>
Suggested-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/zsmalloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 1833fc9..7a48e55 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 |