diff options
author | Kaixiong Yu <yukaixiong@huawei.com> | 2025-01-11 15:07:45 +0800 |
---|---|---|
committer | Joel Granados <joel.granados@kernel.org> | 2025-02-07 16:53:04 +0100 |
commit | f5d64ae331d00c27cc6fc615811a9ba13de5fb0e (patch) | |
tree | a2b115904836645eeaffb6c1df4687f7ef1bc577 /include/linux/mm.h | |
parent | 94eed61d5877c39b9dcdb9079aa6e0907aeb5f7d (diff) | |
download | linux-f5d64ae331d00c27cc6fc615811a9ba13de5fb0e.tar.gz linux-f5d64ae331d00c27cc6fc615811a9ba13de5fb0e.tar.bz2 linux-f5d64ae331d00c27cc6fc615811a9ba13de5fb0e.zip |
fs: drop_caches: move sysctl to fs/drop_caches.c
The sysctl_drop_caches to fs/drop_caches.c, move it to
fs/drop_caches.c from /kernel/sysctl.c. And remove the
useless extern variable declaration from include/linux/mm.h
Signed-off-by: Kaixiong Yu <yukaixiong@huawei.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 1c470e505bd4..f5ba3ed8b44a 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -3789,12 +3789,6 @@ static inline int in_gate_area(struct mm_struct *mm, unsigned long addr) extern bool process_shares_mm(struct task_struct *p, struct mm_struct *mm); -#ifdef CONFIG_SYSCTL -extern int sysctl_drop_caches; -int drop_caches_sysctl_handler(const struct ctl_table *, int, void *, size_t *, - loff_t *); -#endif - void drop_slab(void); #ifndef CONFIG_MMU |