- If we only reclaim nr_pages then its okay to stay on node. Switch from > to >= for the comparison. - vm_table[] entry for zone_reclaim_mode is a bit screwed up. - Add empty lines around shrink_zone to show that this is the central function to be called.
Showing the changes to kernel/sysctl.c (1 of 2 files). Show all
Unified · Split
| @@ -878,7 +878,8 @@ static ctl_table vm_table[] = { · 877 unmodified lines | ||
| 878 | 878 | .maxlen = sizeof(zone_reclaim_mode), |
| 879 | 879 | .mode = 0644, |
| 880 | 880 | .proc_handler = &proc_dointvec, |
| 881 | − .strategy = &zero, | |
| 881 | + .strategy = &sysctl_intvec, | |
| 882 | + .extra1 = &zero, | |
| 882 | 883 | }, |
| 883 | 884 | #endif |
| 884 | 885 | { .ctl_name = 0 } |