]> git.baikalelectronics.ru Git - kernel.git/commit
mm: hugetlb: remove minimum_order variable
authorMuchun Song <songmuchun@bytedance.com>
Thu, 16 Jun 2022 03:38:46 +0000 (11:38 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 4 Jul 2022 01:08:49 +0000 (18:08 -0700)
commit490b246c39d3ea07426d866ff5a7563c21f19f09
tree473b739eac687e1f7a2cf9cc9a19adda55ed4722
parent0c80d01f0ae534d1d449a2d5d5db4628cb212f55
mm: hugetlb: remove minimum_order variable

commit c80a6397be3a ("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