userfaultfd: Fix vma iterator conversion.
Subsystems (2)
PATCH 1/1 userfaultfd: Fix vma iterator conversion.
An extra vma_iter_set() was added to one of the loops over the VMAs. Remove this set as it is suboptimal and unnecessary.
Signed-off-by Liam R. Howlett <[email protected]>
---
This is an mm-unstable hash
Fixes c6fc05242a09 ("userfaultfd: use vma iterator")
Please squash this patch.
fs/userfaultfd.c | 1 - 1 file changed, 1 deletion(-)
fs/userfaultfd.c +0 -1
@@ -1620,7 +1620,6 @@ static int userfaultfd_unregister(struct userfaultfd_ctx *ctx,break ; }if (vma->vm_end > end) { -vma_iter_set (&vmi, vma->vm_end); ret =split_vma (&vmi, vma, end,0 );if (ret)break ;
Signature · 1 line
2.35.1
Andrew Morton
maintainerQuoted 1 line · On Tue, 10 Jan 2023 18:43:03 +0000 Liam Howlett <[email protected]> wrote:
Please squash this patch.
It throws a reject.
This series is getting pretty mauled. I think I'll drop it and ask for a v2, please.
Quoted 7 lines · Andrew Morton
Quoted 1 line · On Tue, 10 Jan 2023 18:43:03 +0000 Liam Howlett <[email protected]> wrote:
Please squash this patch.
It throws a reject.
This series is getting pretty mauled. I think I'll drop it and ask for a v2, please.
Sounds good. I'll send out a v3 after squashing & cleaning things up.
Regards,
Liam