projects
/
users
/
jedix
/
linux-maple.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb77acd
)
mm/oom_kill: use maple tree iterators instead of vma linked list
author
Liam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 22 Aug 2022 15:06:31 +0000
(15:06 +0000)
committer
Andrew Morton <akpm@linux-foundation.org>
Mon, 22 Aug 2022 22:58:30 +0000
(15:58 -0700)
Link:
https://lkml.kernel.org/r/20220822150128.1562046-62-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: David Howells <dhowells@redhat.com>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: SeongJae Park <sj@kernel.org>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/oom_kill.c
patch
|
blob
|
history
diff --git
a/mm/oom_kill.c
b/mm/oom_kill.c
index c08cffbca0d9df4219e066046684ac78e370c113..6811aa48a98cb947212de50eeedd5cd0e5b996bd 100644
(file)
--- a/
mm/oom_kill.c
+++ b/
mm/oom_kill.c
@@
-513,6
+513,7
@@
bool __oom_reap_task_mm(struct mm_struct *mm)
{
struct vm_area_struct *vma;
bool ret = true;
+ VMA_ITERATOR(vmi, mm, 0);
/*
* Tell all users of get_user/copy_from_user etc... that the content
@@
-522,7
+523,7
@@
bool __oom_reap_task_mm(struct mm_struct *mm)
*/
set_bit(MMF_UNSTABLE, &mm->flags);
- for
(vma = mm->mmap ; vma; vma = vma->vm_next
) {
+ for
_each_vma(vmi, vma
) {
if (vma->vm_flags & (VM_HUGETLB|VM_PFNMAP))
continue;