]> git.ipfire.org Git - thirdparty/linux.git/commit - mm/compaction.c
mm, compaction: finish scanning the current pageblock if requested
authorMel Gorman <mgorman@techsingularity.net>
Wed, 25 Jan 2023 13:44:33 +0000 (13:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:33:30 +0000 (22:33 -0800)
commitf9d7fc1ae3349759f25903cd867ab72e6ba4a63e
tree57cd51d52e2d675bfb06d87a5362ca7c5bece5d6
parent16b3be4034316bf56a171478cf1dccdf94dede43
mm, compaction: finish scanning the current pageblock if requested

cc->finish_pageblock is set when the current pageblock should be rescanned
but fast_find_migrateblock can select an alternative block.  Disable
fast_find_migrateblock when the current pageblock scan should be
completed.

Link: https://lkml.kernel.org/r/20230125134434.18017-4-mgorman@techsingularity.net
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Cc: Chuyi Zhou <zhouchuyi@bytedance.com>
Cc: Jiri Slaby <jirislaby@kernel.org>
Cc: Maxim Levitsky <mlevitsk@redhat.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Pedro Falcato <pedro.falcato@gmail.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/compaction.c