From c35b5efa3f297b347bd74d67f916266234a1bd8d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 21 Aug 2022 20:00:31 -0700 Subject: [PATCH] mm-gupc-simplify-and-fix-check_and_migrate_movable_pages-return-codes-fix-fix fix code layout, per John Cc: Alistair Popple Cc: David Hildenbrand Cc: Hugh Dickins Cc: Jason Gunthorpe Cc: John Hubbard Cc: Shigeru Yoshida Signed-off-by: Andrew Morton --- mm/gup.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index 542cf74c59b0..ae84989a7d60 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -2075,11 +2075,13 @@ static long __gup_longterm_locked(struct mm_struct *mm, NULL, gup_flags); flags = memalloc_pin_save(); do { - nr_pinned_pages = __get_user_pages_locked(mm, start, nr_pages, pages, vmas, - NULL, gup_flags); + nr_pinned_pages = __get_user_pages_locked(mm, start, nr_pages, + pages, vmas, NULL, + gup_flags); if (nr_pinned_pages <= 0) break; - rc = check_and_migrate_movable_pages(nr_pinned_pages, pages, gup_flags); + rc = check_and_migrate_movable_pages(nr_pinned_pages, pages, + gup_flags); } while (rc == -EAGAIN); memalloc_pin_restore(flags); -- 2.50.1