]> www.infradead.org Git - users/dwmw2/linux.git/commit
zsmalloc: use all available 24 bits of page_type
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 21 Aug 2024 17:39:12 +0000 (18:39 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Sep 2024 04:15:43 +0000 (21:15 -0700)
commit04cb7502a5d70a6ca230e8c24835dc7dccd39fa7
tree4c7473c3017dffe749b319a44d879d768c030338
parent4ffca5a96678c9fe1a39ec1e9c8fd326b57ea8a7
zsmalloc: use all available 24 bits of page_type

Now that we have an extra 8 bits, we don't need to limit ourselves to
supporting a 64KiB page size.  I'm sure both Hexagon users are grateful,
but it does reduce complexity a little.  We can also remove
reset_first_obj_offset() as calling __ClearPageZsmalloc() will now reset
all 32 bits of page_type.

Link: https://lkml.kernel.org/r/20240821173914.2270383-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/zram/Kconfig
mm/Kconfig
mm/zsmalloc.c