]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: hugetlb_vmemmap: move vmemmap code related to HugeTLB to hugetlb_vmemmap.c
authorMuchun Song <songmuchun@bytedance.com>
Tue, 28 Jun 2022 09:22:31 +0000 (17:22 +0800)
committerakpm <akpm@linux-foundation.org>
Wed, 20 Jul 2022 21:41:30 +0000 (14:41 -0700)
commit6f8e100d088069f6da72d7b222790f4dc3735ee5
tree3de812c396bc4e10963a3fe9e951635e4762ccb5
parente45911332f73358aed240fbbcf93d26ce5a075c3
mm: hugetlb_vmemmap: move vmemmap code related to HugeTLB to hugetlb_vmemmap.c

When I first introduced vmemmap manipulation functions related to HugeTLB,
I thought those functions may be reused by other modules (e.g.  using
similar approach to optimize vmemmap pages, unfortunately, the DAX used
the same approach but does not use those functions).  After two years, we
didn't see any other users.  So move those functions to hugetlb_vmemmap.c.
Code movement without any functional change.

Link: https://lkml.kernel.org/r/20220628092235.91270-5-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>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Will Deacon <will@kernel.org>
Cc: Xiongchun Duan <duanxiongchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h
mm/hugetlb_vmemmap.c
mm/sparse-vmemmap.c