Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

zsmalloc: cleanup headers includes

Remove unused headers includes from zsmalloc and move pagemap.h and
migrate.h includes into zpdesc header.

Link: https://lkml.kernel.org/r/20250325080427.3449359-1-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Sergey Senozhatsky and committed by
Andrew Morton
7eeafde0 bc6fa711

+4 -11
+3
mm/zpdesc.h
··· 7 7 #ifndef __MM_ZPDESC_H__ 8 8 #define __MM_ZPDESC_H__ 9 9 10 + #include <linux/migrate.h> 11 + #include <linux/pagemap.h> 12 + 10 13 /* 11 14 * struct zpdesc - Memory descriptor for zpool memory. 12 15 * @flags: Page flags, mostly unused by zsmalloc.
+1 -11
mm/zsmalloc.c
··· 26 26 #include <linux/module.h> 27 27 #include <linux/kernel.h> 28 28 #include <linux/sched.h> 29 - #include <linux/bitops.h> 30 29 #include <linux/errno.h> 31 30 #include <linux/highmem.h> 32 31 #include <linux/string.h> 33 32 #include <linux/slab.h> 34 - #include <linux/pgtable.h> 35 - #include <asm/tlbflush.h> 36 - #include <linux/cpumask.h> 37 - #include <linux/cpu.h> 38 - #include <linux/vmalloc.h> 39 - #include <linux/preempt.h> 40 33 #include <linux/spinlock.h> 41 34 #include <linux/sprintf.h> 42 35 #include <linux/shrinker.h> ··· 37 44 #include <linux/debugfs.h> 38 45 #include <linux/zsmalloc.h> 39 46 #include <linux/zpool.h> 40 - #include <linux/migrate.h> 41 - #include <linux/wait.h> 42 - #include <linux/pagemap.h> 43 47 #include <linux/fs.h> 44 - #include <linux/local_lock.h> 48 + #include <linux/workqueue.h> 45 49 #include "zpdesc.h" 46 50 47 51 #define ZSPAGE_MAGIC 0x58