summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2016-10-08 00:00:43 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-08 01:46:29 (GMT)
commitcc5c9f098fe48a8736add8a23c983524ca16cea5 (patch)
treed48d2ff7f7c1351b3a6b1739e6bcf1c6264f0226 /crypto
parent423b452e1553e3d19b632880bf2adf1f058ab267 (diff)
downloadlinux-cc5c9f098fe48a8736add8a23c983524ca16cea5.tar.xz
mm, compaction: ignore fragindex from compaction_zonelist_suitable()
The compaction_zonelist_suitable() function tries to determine if compaction will be able to proceed after sufficient reclaim, i.e. whether there are enough reclaimable pages to provide enough order-0 freepages for compaction. This addition of reclaimable pages to the free pages works well for the order-0 watermark check, but in the fragmentation index check we only consider truly free pages. Thus we can get fragindex value close to 0 which indicates failure do to lack of memory, and wrongly decide that compaction won't be suitable even after reclaim. Instead of trying to somehow adjust fragindex for reclaimable pages, let's just skip it from compaction_zonelist_suitable(). Link: http://lkml.kernel.org/r/20160926162025.21555-4-vbabka@suse.cz Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Michal Hocko <mhocko@suse.com> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: David Rientjes <rientjes@google.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 'crypto')
0 files changed, 0 insertions, 0 deletions