mm/compaction: only set skip flag if cc->no_set_skip_hint is false
Keep the same logic as update_pageblock_skip, only set skip if no_set_skip_hint is false which is more reasonable. Link: https://lkml.kernel.org/r/20230804110454.2935878-9-shikemeng@huaweicloud.com Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Mel Gorman <mgorman@techsingularity.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
f82024cbfa
commit
18c59d58ba
@ -1442,7 +1442,7 @@ fast_isolate_around(struct compact_control *cc, unsigned long pfn)
|
||||
isolate_freepages_block(cc, &start_pfn, end_pfn, &cc->freepages, 1, false);
|
||||
|
||||
/* Skip this pageblock in the future as it's full or nearly full */
|
||||
if (start_pfn == end_pfn)
|
||||
if (start_pfn == end_pfn && !cc->no_set_skip_hint)
|
||||
set_pageblock_skip(page);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user