]> 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)
commit343fe4aca3dedb1422fc8ae45925c96e58a642c4
tree473b739eac687e1f7a2cf9cc9a19adda55ed4722
parent0397d1fce291042b96389808885839e4df214d03
mm: hugetlb: remove minimum_order variable

commit 33cb16814035 ("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