]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm: shmem: remove __shmem_huge_global_enabled()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 17 Oct 2024 14:14:57 +0000 (22:14 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Nov 2024 04:11:15 +0000 (20:11 -0800)
commit4a9a27fdf7bfd29013491aea45e3512988cc5876
treeb46c3ac6f26ae10a5aa1911cf6def1b74b510041
parent9884efd795cc2f71ef3b7f42df32420b0b7ce34f
mm: shmem: remove __shmem_huge_global_enabled()

Remove __shmem_huge_global_enabled() since it as only one caller, and
remove repeated check of VM_NOHUGEPAGE/MMF_DISABLE_THP as they are checked
in shmem_allowable_huge_orders(), also remove unnecessary vma parameter.

Link: https://lkml.kernel.org/r/20241017141457.1169092-2-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Barry Song <baohua@kernel.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/shmem.c