summaryrefslogtreecommitdiffstats
path: root/lib/maple_tree.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2024-10-17 22:14:57 +0800
committerAndrew Morton <akpm@linux-foundation.org>2024-11-06 20:11:15 -0800
commit4a9a27fdf7bfd29013491aea45e3512988cc5876 (patch)
treeb46c3ac6f26ae10a5aa1911cf6def1b74b510041 /lib/maple_tree.c
parentmm: huge_memory: move file_thp_enabled() into huge_memory.c (diff)
downloadlinux-4a9a27fdf7bfd29013491aea45e3512988cc5876.tar.gz
linux-4a9a27fdf7bfd29013491aea45e3512988cc5876.zip
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>
Diffstat (limited to 'lib/maple_tree.c')
0 files changed, 0 insertions, 0 deletions