diff options
author | 2024-05-29 13:19:01 +0200 | |
---|---|---|
committer | 2024-07-03 19:30:16 -0700 | |
commit | 43d746dc49bb4c82034fce01a92fe67344d664cf (patch) | |
tree | 3055c0d80152e1ccd6cd7ddaff3c0481bd5cf56b /mm/memory_hotplug.c | |
parent | mm: allow reuse of the lower 16 bit of the page type with an actual type (diff) | |
download | wireguard-linux-43d746dc49bb4c82034fce01a92fe67344d664cf.tar.xz wireguard-linux-43d746dc49bb4c82034fce01a92fe67344d664cf.zip |
mm/zsmalloc: use a proper page type
Let's clean it up: use a proper page type and store our data (offset into
a page) in the lower 16 bit as documented.
We won't be able to support 256 KiB base pages, which is acceptable.
Teach Kconfig to handle that cleanly using a new CONFIG_HAVE_ZSMALLOC.
Based on this, we should do a proper "struct zsdesc" conversion, as
proposed in [1].
This removes the last _mapcount/page_type offender.
[1] https://lore.kernel.org/all/20231130101242.2590384-1-42.hyeyoo@gmail.com/
Link: https://lkml.kernel.org/r/20240529111904.2069608-4-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Tested-by: Sergey Senozhatsky <senozhatsky@chromium.org> [zram/zsmalloc workloads]
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions