Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

zsmalloc: document freeable stats

When freeable class stat was added to classes file (back in 2016) we
forgot to update zsmalloc documentation. Fix that.

Link: https://lkml.kernel.org/r/20230325024631.2817153-3-senozhatsky@chromium.org
Fixes: 1120ed548394 ("mm/zsmalloc: add `freeable' column to pool stat")
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Sergey Senozhatsky and committed by
Andrew Morton
618a8a91 119b57ea

+2
+2
Documentation/mm/zsmalloc.rst
··· 83 83 the number of pages allocated for the class 84 84 pages_per_zspage 85 85 the number of 0-order pages to make a zspage 86 + freeable 87 + the approximate number of pages class compaction can free 86 88 87 89 Each zspage maintains inuse counter which keeps track of the number of 88 90 objects stored in the zspage. The inuse counter determines the zspage's