diff options
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 3ff3311447f5..f2c367c9ec12 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1774,6 +1774,7 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist, | |||
1774 | enum zone_type high_zoneidx = gfp_zone(sc->gfp_mask); | 1774 | enum zone_type high_zoneidx = gfp_zone(sc->gfp_mask); |
1775 | unsigned long writeback_threshold; | 1775 | unsigned long writeback_threshold; |
1776 | 1776 | ||
1777 | get_mems_allowed(); | ||
1777 | delayacct_freepages_start(); | 1778 | delayacct_freepages_start(); |
1778 | 1779 | ||
1779 | if (scanning_global_lru(sc)) | 1780 | if (scanning_global_lru(sc)) |
@@ -1857,6 +1858,7 @@ out: | |||
1857 | mem_cgroup_record_reclaim_priority(sc->mem_cgroup, priority); | 1858 | mem_cgroup_record_reclaim_priority(sc->mem_cgroup, priority); |
1858 | 1859 | ||
1859 | delayacct_freepages_end(); | 1860 | delayacct_freepages_end(); |
1861 | put_mems_allowed(); | ||
1860 | 1862 | ||
1861 | return ret; | 1863 | return ret; |
1862 | } | 1864 | } |