summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSergey Senozhatsky <senozhatsky@chromium.org>2023-01-18 01:52:08 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-02-03 07:33:23 +0100
commite1d1f3546913ae0af9da31df8183a6f3da0cd590 (patch)
tree17b2e297362a6300267820fdc3f1f843663d5c6c /usr
parentzsmalloc: rework zspage chain size selection (diff)
downloadlinux-e1d1f3546913ae0af9da31df8183a6f3da0cd590.tar.xz
linux-e1d1f3546913ae0af9da31df8183a6f3da0cd590.zip
zsmalloc: skip chain size calculation for pow_of_2 classes
If a class size is power of 2 then it wastes no memory and the best configuration is 1 physical page per-zspage. Link: https://lkml.kernel.org/r/20230118005210.2814763-3-senozhatsky@chromium.org Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org> Acked-by: Minchan Kim <minchan@kernel.org> Cc: Mike Kravetz <mike.kravetz@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions