提交 896c4d52 编写于 作者: M Miaohe Lin 提交者: Andrew Morton

mm/page_alloc: use costly_order in WARN_ON_ONCE_GFP()

There's no need to check whether order > PAGE_ALLOC_COSTLY_ORDER again. 
Minor readability improvement.

Link: https://lkml.kernel.org/r/20220916072257.9639-15-linmiaohe@huawei.comSigned-off-by: NMiaohe Lin <linmiaohe@huawei.com>
Reviewed-by: NDavid Hildenbrand <david@redhat.com>
Reviewed-by: NAnshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: NOscar Salvador <osalvador@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
上级 dae37a5d
...@@ -5280,7 +5280,7 @@ __alloc_pages_slowpath(gfp_t gfp_mask, unsigned int order, ...@@ -5280,7 +5280,7 @@ __alloc_pages_slowpath(gfp_t gfp_mask, unsigned int order,
* so that we can identify them and convert them to something * so that we can identify them and convert them to something
* else. * else.
*/ */
WARN_ON_ONCE_GFP(order > PAGE_ALLOC_COSTLY_ORDER, gfp_mask); WARN_ON_ONCE_GFP(costly_order, gfp_mask);
/* /*
* Help non-failing allocations by giving them access to memory * Help non-failing allocations by giving them access to memory
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册