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

Commit b67c3a0a authored by Yinghao Xie's avatar Yinghao Xie Committed by Greg Hackmann
Browse files

UPSTREAM: mm/zsmalloc.c: fix comment for get_pages_per_zspage



(cherry-pick from commit 888fa374e625f3ee8f3cc2efebf52939d3bb6da1)

Signed-off-by: default avatarYinghao Xie <yinghao.xie@sumsung.com>
Suggested-by: default avatarMinchan Kim <minchan@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>

Bug: 25951511

Change-Id: I575b54fd6da328eb982b5e92e1b2e983985d7019
parent 623b6e63
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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