Skip to content

Commit

Permalink
mm/zsmalloc.c: fix comment for get_pages_per_zspage
Browse files Browse the repository at this point in the history
Signed-off-by: Yinghao Xie <[email protected]>
Suggested-by: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Yinghao Xie authored and torvalds committed Apr 15, 2015
1 parent d02be50 commit 888fa37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/zsmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,8 @@ static enum fullness_group fix_fullness_group(struct size_class *class,
* 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
Expand Down

0 comments on commit 888fa37

Please sign in to comment.