Skip to content

Commit 65974cb

Browse files
apopple-nvidiaakpm00
authored andcommitted
mm/gup.c: fix formatting in check_and_migrate_movable_page()
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>
1 parent 35fcd75 commit 65974cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mm/gup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,8 +1980,8 @@ static long check_and_migrate_movable_pages(unsigned long nr_pages,
19801980
folio_nr_pages(folio));
19811981
}
19821982

1983-
if (!list_empty(&movable_page_list) || isolation_error_count
1984-
|| coherent_pages)
1983+
if (!list_empty(&movable_page_list) || isolation_error_count ||
1984+
coherent_pages)
19851985
goto unpin_pages;
19861986

19871987
/*

0 commit comments

Comments
 (0)