Browse Source

zsmalloc: add comments for ->inuse to zspage

[akpm@linux-foundation.org: fix grammar]
Signed-off-by: Hui Zhu <zhuhui@xiaomi.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Hui Zhu 9 years ago
parent
commit
8f958c98f2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mm/zsmalloc.c

+ 1 - 0
mm/zsmalloc.c

@@ -38,6 +38,7 @@
  *	page->lru: links together first pages of various zspages.
  *	page->lru: links together first pages of various zspages.
  *		Basically forming list of zspages in a fullness group.
  *		Basically forming list of zspages in a fullness group.
  *	page->mapping: class index and fullness group of the zspage
  *	page->mapping: class index and fullness group of the zspage
+ *	page->inuse: the number of objects that are used in this zspage
  *
  *
  * Usage of struct page flags:
  * Usage of struct page flags:
  *	PG_private: identifies the first component page
  *	PG_private: identifies the first component page