diff options
author | Mel Gorman <mgorman@techsingularity.net> | 2016-05-20 00:13:41 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-20 02:12:14 (GMT) |
commit | fa379b9586c7507c607d031dadf3681ed29614a9 (patch) | |
tree | a917313eba0d3510b158d684dcfe0309586c9766 /mm/page_alloc.c | |
parent | c603844bdcb5238980de8d58b393f52d7729d651 (diff) | |
download | linux-fa379b9586c7507c607d031dadf3681ed29614a9.tar.xz |
mm, page_alloc: convert nr_fair_skipped to bool
The number of zones skipped to a zone expiring its fair zone allocation
quota is irrelevant. Convert to bool.
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 094587a..41d20bf 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2680,7 +2680,7 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags, struct zoneref *z; struct page *page = NULL; struct zone *zone; - int nr_fair_skipped = 0; + bool fair_skipped; bool zonelist_rescan; zonelist_scan: @@ -2708,7 +2708,7 @@ zonelist_scan: if (!zone_local(ac->preferred_zone, zone)) break; if (test_bit(ZONE_FAIR_DEPLETED, &zone->flags)) { - nr_fair_skipped++; + fair_skipped = true; continue; } } @@ -2801,7 +2801,7 @@ try_this_zone: */ if (alloc_flags & ALLOC_FAIR) { alloc_flags &= ~ALLOC_FAIR; - if (nr_fair_skipped) { + if (fair_skipped) { zonelist_rescan = true; reset_alloc_batches(ac->preferred_zone); } |