diff options
-rw-r--r-- | kernel/sysctl.c | 3 | ||||
-rw-r--r-- | mm/vmscan.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index cb99a42f8b37..c74f03bc0144 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -878,7 +878,8 @@ static ctl_table vm_table[] = { | |||
878 | .maxlen = sizeof(zone_reclaim_mode), | 878 | .maxlen = sizeof(zone_reclaim_mode), |
879 | .mode = 0644, | 879 | .mode = 0644, |
880 | .proc_handler = &proc_dointvec, | 880 | .proc_handler = &proc_dointvec, |
881 | .strategy = &zero, | 881 | .strategy = &sysctl_intvec, |
882 | .extra1 = &zero, | ||
882 | }, | 883 | }, |
883 | #endif | 884 | #endif |
884 | { .ctl_name = 0 } | 885 | { .ctl_name = 0 } |
diff --git a/mm/vmscan.c b/mm/vmscan.c index a29efb2c06c8..61ca0097c834 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1636,14 +1636,16 @@ int zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order) | |||
1636 | p->flags |= PF_MEMALLOC; | 1636 | p->flags |= PF_MEMALLOC; |
1637 | reclaim_state.reclaimed_slab = 0; | 1637 | reclaim_state.reclaimed_slab = 0; |
1638 | p->reclaim_state = &reclaim_state; | 1638 | p->reclaim_state = &reclaim_state; |
1639 | |||
1639 | shrink_zone(zone, &sc); | 1640 | shrink_zone(zone, &sc); |
1641 | |||
1640 | p->reclaim_state = NULL; | 1642 | p->reclaim_state = NULL; |
1641 | current->flags &= ~PF_MEMALLOC; | 1643 | current->flags &= ~PF_MEMALLOC; |
1642 | 1644 | ||
1643 | if (sc.nr_reclaimed == 0) | 1645 | if (sc.nr_reclaimed == 0) |
1644 | zone->last_unsuccessful_zone_reclaim = jiffies; | 1646 | zone->last_unsuccessful_zone_reclaim = jiffies; |
1645 | 1647 | ||
1646 | return sc.nr_reclaimed > nr_pages; | 1648 | return sc.nr_reclaimed >= nr_pages; |
1647 | } | 1649 | } |
1648 | #endif | 1650 | #endif |
1649 | 1651 | ||