* + mm-khugepaged-use-vma_is_anonymous.patch added to -mm tree
@ 2022-04-24 20:18 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-04-24 20:18 UTC (permalink / raw)
To: mm-commits, xu.xin16, akpm
The patch titled
Subject: mm/khugepaged: use vma_is_anonymous
has been added to the -mm tree. Its filename is
mm-khugepaged-use-vma_is_anonymous.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-khugepaged-use-vma_is_anonymous.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-khugepaged-use-vma_is_anonymous.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: xu xin <xu.xin16@zte.com.cn>
Subject: mm/khugepaged: use vma_is_anonymous
Clean up the vma->vm_ops usage. Use vma_is_anonymous instead of
vma->vm_ops to make it more understandable.
Link: https://lkml.kernel.org/r/20220424071642.3234971-1-xu.xin16@zte.com.cn
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/khugepaged.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/mm/khugepaged.c~mm-khugepaged-use-vma_is_anonymous
+++ a/mm/khugepaged.c
@@ -466,7 +466,7 @@ static bool hugepage_vma_check(struct vm
if (file_thp_enabled(vma))
return true;
- if (!vma->anon_vma || vma->vm_ops)
+ if (!vma->anon_vma || !vma_is_anonymous(vma))
return false;
if (vma_is_temporary_stack(vma))
return false;
@@ -982,7 +982,7 @@ static int hugepage_vma_revalidate(struc
if (!hugepage_vma_check(vma, vma->vm_flags))
return SCAN_VMA_CHECK;
/* Anon VMA expected */
- if (!vma->anon_vma || vma->vm_ops)
+ if (!vma->anon_vma || !vma_is_anonymous(vma))
return SCAN_VMA_CHECK;
return 0;
}
_
Patches currently in -mm which might be from xu.xin16@zte.com.cn are
mm-khugepaged-use-vma_is_anonymous.patch
ksm-count-ksm-merging-pages-for-each-process.patch
kernel-make-taskstats-available-from-all-net-namespaces.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-24 20:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-24 20:18 + mm-khugepaged-use-vma_is_anonymous.patch added to -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.