On 2/10/21 1:21 PM, Axel Rasmussen wrote: > From: Peter Xu <peterx@xxxxxxxxxx> > > 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 <mike.kravetz@xxxxxxxxxx> > Signed-off-by: Peter Xu <peterx@xxxxxxxxxx> > Signed-off-by: Axel Rasmussen <axelrasmussen@xxxxxxxxxx> > --- > 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 <mike.kravetz@xxxxxxxxxx> -- Mike Kravetz