From 01573e231f18eb2d99162747186f59511f56b64d Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 08 Dec 2023 10:40:48 +0000 Subject: [PATCH] 移去rt --- kernel/include/linux/hugetlb_inline.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/include/linux/hugetlb_inline.h b/kernel/include/linux/hugetlb_inline.h index 0660a03..9e25283 100644 --- a/kernel/include/linux/hugetlb_inline.h +++ b/kernel/include/linux/hugetlb_inline.h @@ -8,7 +8,7 @@ static inline bool is_vm_hugetlb_page(struct vm_area_struct *vma) { - return !!(vma->vm_flags & VM_HUGETLB); + return !!(READ_ONCE(vma->vm_flags) & VM_HUGETLB); } #else -- Gitblit v1.6.2