]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/page_alloc: only search higher order when fallback
authorAbel Wu <wuyun.abel@bytedance.com>
Wed, 3 Aug 2022 02:51:21 +0000 (10:51 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Aug 2022 05:02:50 +0000 (22:02 -0700)
commitf65c04e9e76b076cf80043598c338fa0019d60c5
tree73d5bd1466af6f5e6f694508f37c146ce030b157
parent0ff2432128e0e50a966e5d0989d1b224f1bd710d
mm/page_alloc: only search higher order when fallback

It seems unnecessary to search pages with order < alloc_order in
fallback allocation.

This can currently happen with ALLOC_NOFRAGMENT and alloc_order >
pageblock_order, so add a test to prevent it.

[vbabka@suse.cz: changelog addition]
Link: https://lkml.kernel.org/r/20220803025121.47018-1-wuyun.abel@bytedance.com
Signed-off-by: Abel Wu <wuyun.abel@bytedance.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c