diff options
author | Mel Gorman <mgorman@techsingularity.net> | 2015-11-07 01:28:12 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-07 02:50:42 +0100 |
commit | c9ab0c4fbeb0202bac3548378a977e1536ebe3ca (patch) | |
tree | 44d92e1b08afbb47e64ec55d9ceb7704b4f0815c /sound | |
parent | mm, page_alloc: remove unnecessary parameter from zone_watermark_ok_safe (diff) | |
download | linux-c9ab0c4fbeb0202bac3548378a977e1536ebe3ca.tar.xz linux-c9ab0c4fbeb0202bac3548378a977e1536ebe3ca.zip |
mm, page_alloc: remove unnecessary recalculations for dirty zone balancing
File-backed pages that will be immediately written are balanced between
zones. This heuristic tries to avoid having a single zone filled with
recently dirtied pages but the checks are unnecessarily expensive. Move
consider_zone_balanced into the alloc_context instead of checking bitmaps
multiple times. The patch also gives the parameter a more meaningful
name.
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: Vitaly Wool <vitalywool@gmail.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions