Re: [PATCH v5 01/10] hugetlb: Pass vma into huge_pte_alloc() and huge_pmd_share()
From: Mike Kravetz <hidden>
Date: 2021-02-12 00:01:11
Also in:
linux-fsdevel, lkml
From: Mike Kravetz <hidden>
Date: 2021-02-12 00:01:11
Also in:
linux-fsdevel, lkml
On 2/10/21 1:21 PM, Axel Rasmussen wrote:
From: Peter Xu <peterx@redhat.com> It is a preparation work to be able to behave differently in the per architecture huge_pte_alloc() according to different VMA attributes. Pass it deeper into huge_pmd_share() so that we can avoid the find_vma() call. Suggested-by: Mike Kravetz <redacted> Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Axel Rasmussen <axelrasmussen@google.com> --- arch/arm64/mm/hugetlbpage.c | 4 ++-- arch/ia64/mm/hugetlbpage.c | 3 ++- arch/mips/mm/hugetlbpage.c | 4 ++-- arch/parisc/mm/hugetlbpage.c | 2 +- arch/powerpc/mm/hugetlbpage.c | 3 ++- arch/s390/mm/hugetlbpage.c | 2 +- arch/sh/mm/hugetlbpage.c | 2 +- arch/sparc/mm/hugetlbpage.c | 6 +----- include/linux/hugetlb.h | 5 +++-- mm/hugetlb.c | 15 ++++++++------- mm/userfaultfd.c | 2 +- 11 files changed, 24 insertions(+), 24 deletions(-)
Thanks, this will be needed for multiple features where pmd sharing must be disabled. And, the need to disable sharing is based on information in the vma. Reviewed-by: Mike Kravetz <redacted> -- Mike Kravetz