Skip to content

Commit

Permalink
mm/gup.c: fix formatting in check_and_migrate_movable_page()
Browse files Browse the repository at this point in the history
Commit b05a79d ("mm/gup: migrate device coherent pages when pinning
instead of failing") added a badly formatted if statement. Fix it.

Link: https://lkml.kernel.org/r/20220721020552.1397598-2-apopple@nvidia.com
Signed-off-by: Alistair Popple <apopple@nvidia.com>
Reported-by: David Hildenbrand <david@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Alistair Popple authored and akpm committed Jul 30, 2022
1 parent 35fcd75 commit 65974cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/gup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1980,8 +1980,8 @@ static long check_and_migrate_movable_pages(unsigned long nr_pages,
folio_nr_pages(folio));
}

if (!list_empty(&movable_page_list) || isolation_error_count
|| coherent_pages)
if (!list_empty(&movable_page_list) || isolation_error_count ||
coherent_pages)
goto unpin_pages;

/*
Expand Down

0 comments on commit 65974cb

Please sign in to comment.