mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
mm: page_alloc: remove unused parameter from reserve_highatomic_pageblock()
Just remove the redundant parameter alloc_order from reserve_highatomic_pageblock(). No functional modification involved. Link: https://lkml.kernel.org/r/20230809073323.1065286-1-zhangpeng362@huawei.com Signed-off-by: ZhangPeng <zhangpeng362@huawei.com> Cc: Kefeng Wang <wangkefeng.wang@huawei.com> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Nanyong Sun <sunnanyong@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
b7108d6631
commit
368d983b98
|
|
@ -1899,8 +1899,7 @@ int find_suitable_fallback(struct free_area *area, unsigned int order,
|
|||
* Reserve a pageblock for exclusive use of high-order atomic allocations if
|
||||
* there are no empty page blocks that contain a page with a suitable order
|
||||
*/
|
||||
static void reserve_highatomic_pageblock(struct page *page, struct zone *zone,
|
||||
unsigned int alloc_order)
|
||||
static void reserve_highatomic_pageblock(struct page *page, struct zone *zone)
|
||||
{
|
||||
int mt;
|
||||
unsigned long max_managed, flags;
|
||||
|
|
@ -3210,7 +3209,7 @@ get_page_from_freelist(gfp_t gfp_mask, unsigned int order, int alloc_flags,
|
|||
* if the pageblock should be reserved for the future
|
||||
*/
|
||||
if (unlikely(alloc_flags & ALLOC_HIGHATOMIC))
|
||||
reserve_highatomic_pageblock(page, zone, order);
|
||||
reserve_highatomic_pageblock(page, zone);
|
||||
|
||||
return page;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user