Skip to content

Commit

Permalink
mm: vmscan: reclaim highmem zone if buffer_heads is over limit
Browse files Browse the repository at this point in the history
We have been reclaimed highmem zone if buffer_heads is over limit but
6b4f779 ("mm: vmscan: invoke slab shrinkers from shrink_zone()")
changed the behavior so it doesn't reclaim highmem zone although
buffer_heads is over the limit.  This patch restores the logic.

Fixes: 6b4f779 ("mm: vmscan: invoke slab shrinkers from shrink_zone()")
Signed-off-by: Minchan Kim <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
minchank authored and hnaz committed Apr 29, 2016
1 parent a447300 commit 5c11c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/vmscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2553,7 +2553,7 @@ static bool shrink_zones(struct zonelist *zonelist, struct scan_control *sc)
sc->gfp_mask |= __GFP_HIGHMEM;

for_each_zone_zonelist_nodemask(zone, z, zonelist,
requested_highidx, sc->nodemask) {
gfp_zone(sc->gfp_mask), sc->nodemask) {
enum zone_type classzone_idx;

if (!populated_zone(zone))
Expand Down

0 comments on commit 5c11c7f

Please sign in to comment.