summaryrefslogtreecommitdiff
path: root/include/linux/hugetlb.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2025-03-04 11:15:26 +0100
committerIngo Molnar <mingo@kernel.org>2025-03-04 11:15:26 +0100
commit1b4c36f9b11e4a68f6174d1b6542b50cd29cddd2 (patch)
tree735b11a744d0acd18a1d7b7a4a5fa63fc6d23b92 /include/linux/hugetlb.h
parentd0ba9bcf001c7907e4755b0e498f5ff9d1a228ef (diff)
parentf6bdaab79ee4228a143ee1b4cb80416d6ffc0c63 (diff)
Merge branch 'x86/urgent' into x86/cpu, to pick up dependent commits
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r--include/linux/hugetlb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index ec8c0ccc8f95..bf5f7256bd28 100644
--- a/include/linux/hugetlb.h
+++ b/include/linux/hugetlb.h
@@ -1004,7 +1004,9 @@ static inline void hugetlb_count_sub(long l, struct mm_struct *mm)
static inline pte_t huge_ptep_modify_prot_start(struct vm_area_struct *vma,
unsigned long addr, pte_t *ptep)
{
- return huge_ptep_get_and_clear(vma->vm_mm, addr, ptep);
+ unsigned long psize = huge_page_size(hstate_vma(vma));
+
+ return huge_ptep_get_and_clear(vma->vm_mm, addr, ptep, psize);
}
#endif