| From: Andrew Morton <akpm@linux-foundation.org> |
| Subject: mm-move-page-writeback-sysctls-to-is-own-file-fix |
| |
| fix CONFIG_SYSCTL=n warnings |
| |
| Cc: Iurii Zaikin <yzaikin@google.com> |
| Cc: Kees Cook <keescook@chromium.org> |
| Cc: Luis Chamberlain <mcgrof@kernel.org> |
| Cc: zhanglianjie <zhanglianjie@uniontech.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| mm/page-writeback.c | 4 ++++ |
| 1 file changed, 4 insertions(+) |
| |
| --- a/mm/page-writeback.c~mm-move-page-writeback-sysctls-to-is-own-file-fix |
| +++ a/mm/page-writeback.c |
| @@ -506,6 +506,7 @@ bool node_dirty_ok(struct pglist_data *p |
| return nr_pages <= limit; |
| } |
| |
| +#ifdef CONFIG_SYSCTL |
| static int dirty_background_ratio_handler(struct ctl_table *table, int write, |
| void *buffer, size_t *lenp, loff_t *ppos) |
| { |
| @@ -555,6 +556,7 @@ static int dirty_bytes_handler(struct ct |
| } |
| return ret; |
| } |
| +#endif |
| |
| static unsigned long wp_next_time(unsigned long cur_time) |
| { |
| @@ -1996,6 +1998,7 @@ bool wb_over_bg_thresh(struct bdi_writeb |
| return false; |
| } |
| |
| +#ifdef CONFIG_SYSCTL |
| /* |
| * sysctl handler for /proc/sys/vm/dirty_writeback_centisecs |
| */ |
| @@ -2020,6 +2023,7 @@ static int dirty_writeback_centisecs_han |
| |
| return ret; |
| } |
| +#endif |
| |
| void laptop_mode_timer_fn(struct timer_list *t) |
| { |
| _ |