mm: move page-writeback sysctls to their own file
Subsystems (3)
Andrew Morton
maintainerPATCH 2/2 mm: move page-writeback sysctls to their own file
From: zhanglianjie <[email protected]>
Subject: mm: move page-writeback sysctls to their own file
kernel/sysctl.c is a kitchen sink where everyone leaves their dirty dishes, this makes it very difficult to maintain.
To help with this maintenance let's start by moving sysctls to places where they actually belong. The proc sysctl maintainers do not want to know what sysctl knobs you wish to add for your own piece of code, we just care about the core logic.
So move the page-writeback sysctls to its own file.
[[email protected]: coding-style cleanups] [email protected]: fix CONFIG_SYSCTL=n warnings]
---
include/linux/writeback.h | 15 ----- kernel/sysctl.c | 69 ------------------------ mm/page-writeback.c | 103 ++++++++++++++++++++++++++++++++---- 3 files changed, 93 insertions(+), 94 deletions(-)
include/linux/writeback.h renamed from include/linux/writeback.h~mm-move-page-writeback-sysctls-to-is-own-file +0 -15
@@ -345,28 +345,13 @@ void wb_domain_exit(struct wb_domain *doextern struct wb_domain global_wb_domain;/* These are exported to sysctl. */ -extern int dirty_background_ratio; -extern unsigned long dirty_background_bytes; -extern int vm_dirty_ratio; -extern unsigned long vm_dirty_bytes;extern unsigned int dirty_writeback_interval;extern unsigned int dirty_expire_interval;extern unsigned int dirtytime_expire_interval; -extern int vm_highmem_is_dirtyable;extern int laptop_mode; -int dirty_background_ratio_handler (struct ctl_table *table,int write, -void *buffer,size_t *lenp,loff_t *ppos); -int dirty_background_bytes_handler (struct ctl_table *table,int write, -void *buffer,size_t *lenp,loff_t *ppos); -int dirty_ratio_handler (struct ctl_table *table,int write, -void *buffer,size_t *lenp,loff_t *ppos); -int dirty_bytes_handler (struct ctl_table *table,int write, -void *buffer,size_t *lenp,loff_t *ppos);int dirtytime_interval_handler (struct ctl_table *table,int write,void *buffer,size_t *lenp,loff_t *ppos); -int dirty_writeback_centisecs_handler (struct ctl_table *table,int write, -void *buffer,size_t *lenp,loff_t *ppos);void global_dirty_limits (unsigned long *pbackground,unsigned long *pdirty);unsigned long wb_calc_thresh (struct bdi_writeback *wb,unsigned long thresh);
kernel/sysctl.c renamed from kernel/sysctl.c~mm-move-page-writeback-sysctls-to-is-own-file +0 -69
93 lines not on this page · raw message
mm/page-writeback.c renamed from mm/page-writeback.c~mm-move-page-writeback-sysctls-to-is-own-file +93 -10
185 lines not on this page · raw message
_
Luis Chamberlain
AppliedQuoted 13 lines · Andrew Morton
From: zhanglianjie <[email protected]>
Subject: mm: move page-writeback sysctls to their own file
kernel/sysctl.cis a kitchen sink where everyone leaves their dirty dishes, this makes it very difficult to maintain.To help with this maintenance let's start by moving sysctls to places where they actually belong. The proc sysctl maintainers do not want to know what sysctl knobs you wish to add for your own piece of code, we just care about the core logic.
So move the page-writeback sysctls to its own file.
Quoted 8 lines
[[email protected]: coding-style cleanups] [email protected]: fix
CONFIG_SYSCTL=nwarnings]Signed-off-by zhanglianjie <[email protected]>Cc Kees Cook <[email protected]>Cc Iurii Zaikin <[email protected]>Cc Luis Chamberlain <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Queued on sysctl-next.
Luis