]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
zsmalloc: document freeable stats
authorSergey Senozhatsky <senozhatsky@chromium.org>
Sat, 25 Mar 2023 02:46:31 +0000 (11:46 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 6 Apr 2023 01:06:23 +0000 (18:06 -0700)
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>
Documentation/mm/zsmalloc.rst

index 3c6bf639887ff4686613cae0435fd40d5c9a4f9f..a3c26d587752fe04f34739f266c5f5416d431c9b 100644 (file)
@@ -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