linux/drivers/block/zram
David Hildenbrand 43d746dc49 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>
2024-07-03 19:30:16 -07:00
..
Kconfig mm/zsmalloc: use a proper page type 2024-07-03 19:30:16 -07:00
Makefile
zcomp.c zram: do not allocate physically contiguous strm buffers 2024-02-22 10:24:59 -08:00
zcomp.h zram: zcomp: remove zcomp_set_max_streams() declaration 2024-03-04 17:01:17 -08:00
zram_drv.c getting rid of bogus set_blocksize() uses, switching it 2024-05-21 08:34:51 -07:00
zram_drv.h zram: don't bother with reopening - just use O_EXCL for open 2024-05-02 17:39:26 -04:00