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/[email protected] Signed-off-by: Alistair Popple <[email protected]> Reported-by: David Hildenbrand <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 35fcd75 commit 65974cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)