diff options
author | Kaixiong Yu <yukaixiong@huawei.com> | 2025-01-11 15:07:38 +0800 |
---|---|---|
committer | Joel Granados <joel.granados@kernel.org> | 2025-02-07 16:53:04 +0100 |
commit | 7e05627ee17bf30422705f94627cf9da70683887 (patch) | |
tree | 3e6ec6e05982de9afb488e0aa400d7383dfe5c09 /mm/swap.h | |
parent | 73aa354af21d4c09b31e9b287f4cb32a9b4e9c8c (diff) |
mm: swap: move sysctl to mm/swap.c
The page-cluster belongs to mm/swap.c, move it to mm/swap.c .
Removes the redundant external variable declaration and unneeded
include(linux/swap.h).
Signed-off-by: Kaixiong Yu <yukaixiong@huawei.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
Diffstat (limited to 'mm/swap.h')
-rw-r--r-- | mm/swap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/swap.h b/mm/swap.h index ad2f121de970..274dcc6219a0 100644 --- a/mm/swap.h +++ b/mm/swap.h @@ -3,6 +3,7 @@ #define _MM_SWAP_H struct mempolicy; +extern int page_cluster; #ifdef CONFIG_SWAP #include <linux/swapops.h> /* for swp_offset */ |