]> www.infradead.org Git - users/jedix/linux-maple.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>
Fri, 1 Nov 2024 04:29:13 +0000 (21:29 -0700)
commitb7ad7f4f4d5f70107551029fb80121f4c4e897a6
tree54ac51b21a52782974c58b5677f37207acf6dff9
parentb1247ee83d8c0ab09ecfa74de34ca8dbbad8b7e7
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>
Cc: Barry Song <baohua@kernel.org>
Cc: David Hildenbrand <david@redhat.com>
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