lkml.org 
[lkml]   [2022]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v14 67/70] mm/vmscan: Use vma iterator instead of vm_next
On Mon, 12 Sep 2022 14:01:28 -0600 Yu Zhao <yuzhao@google.com> wrote:

> The diff between the original patch and this one, in case you prefer to
> fix it atop rather than amend.

Always...

> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index a7c5d15c1618..cadcc3290918 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -3776,7 +3776,10 @@ static bool get_next_vma(unsigned long mask, unsigned long size, struct mm_walk
> VM_WARN_ON_ONCE(mask & size);
> VM_WARN_ON_ONCE((start & mask) != (*vm_start & mask));
>
> - for_each_vma_range(vmi, args->vma, end) {
> + for_each_vma(vmi, args->vma) {
> + if (end && end <= args->vma->vm_start)
> + return false;
> +
> if (should_skip_vma(args->vma->vm_start, args->vma->vm_end, args))
> continue;

Thanks.

I added your signoff so I don't get a nastygram from Stephen in the
morning. Please send along a suitable brief changelog?

\
 
 \ /
  Last update: 2022-09-12 23:04    [W:0.085 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site