diff options
author | Vlastimil Babka | 2016-07-29 00:49:28 +0200 |
---|---|---|
committer | Linus Torvalds | 2016-07-29 01:07:41 +0200 |
commit | a5508cd83f10f663e05d212cb81f600a3af46e40 (patch) | |
tree | b52a09bd0be8e756a48b6673c7746b3b0e1b6726 /net/l2tp | |
parent | mm, thp: remove __GFP_NORETRY from khugepaged and madvised allocations (diff) | |
download | kernel-qcow2-linux-a5508cd83f10f663e05d212cb81f600a3af46e40.tar.gz kernel-qcow2-linux-a5508cd83f10f663e05d212cb81f600a3af46e40.tar.xz kernel-qcow2-linux-a5508cd83f10f663e05d212cb81f600a3af46e40.zip |
mm, compaction: introduce direct compaction priority
In the context of direct compaction, for some types of allocations we
would like the compaction to either succeed or definitely fail while
trying as hard as possible. Current async/sync_light migration mode is
insufficient, as there are heuristics such as caching scanner positions,
marking pageblocks as unsuitable or deferring compaction for a zone. At
least the final compaction attempt should be able to override these
heuristics.
To communicate how hard compaction should try, we replace migration mode
with a new enum compact_priority and change the relevant function
signatures. In compact_zone_order() where struct compact_control is
constructed, the priority is mapped to suitable control flags. This
patch itself has no functional change, as the current priority levels
are mapped back to the same migration modes as before. Expanding them
will be done next.
Note that !CONFIG_COMPACTION variant of try_to_compact_pages() is
removed, as the only caller exists under CONFIG_COMPACTION.
Link: http://lkml.kernel.org/r/20160721073614.24395-8-vbabka@suse.cz
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/l2tp')
0 files changed, 0 insertions, 0 deletions