summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSergey Senozhatsky <senozhatsky@chromium.org>2023-03-25 03:46:31 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-04-06 03:06:23 +0200
commit618a8a917dbf5830e2064d2fa0568940eb5d2584 (patch)
treec08dda406ba264989face36044b0b560721d0889 /Documentation
parentzsmalloc: document new fullness grouping (diff)
downloadlinux-618a8a917dbf5830e2064d2fa0568940eb5d2584.tar.xz
linux-618a8a917dbf5830e2064d2fa0568940eb5d2584.zip
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/mm/zsmalloc.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/mm/zsmalloc.rst b/Documentation/mm/zsmalloc.rst
index 3c6bf639887f..a3c26d587752 100644
--- a/Documentation/mm/zsmalloc.rst
+++ b/Documentation/mm/zsmalloc.rst
@@ -83,6 +83,8 @@ pages_used
the number of pages allocated for the class
pages_per_zspage
the number of 0-order pages to make a zspage
+freeable
+ the approximate number of pages class compaction can free
Each zspage maintains inuse counter which keeps track of the number of
objects stored in the zspage. The inuse counter determines the zspage's