]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: hugetlb: remove minimum_order variable
authorMuchun Song <songmuchun@bytedance.com>
Thu, 16 Jun 2022 03:38:46 +0000 (11:38 +0800)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Jul 2022 00:15:10 +0000 (20:15 -0400)
commit542ffb9c45236332732e584c4e31e21b82940d2c
treeb50c14186dc5a5b442ccc074af326d36583e5fde
parentc887200da2b8c4bd093892f77888d61fa0ae6c11
mm: hugetlb: remove minimum_order variable

commit 641844f5616d ("mm/hugetlb: introduce minimum hugepage order") fixed
a static checker warning and introduced a global variable minimum_order to
fix the warning.  However, the local variable in
dissolve_free_huge_pages() can be initialized to
huge_page_order(&default_hstate) to fix the warning.

So remove minimum_order to simplify the code.

Link: https://lkml.kernel.org/r/20220616033846.96937-1-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c