提交 65974cb9 编写于 作者: A Alistair Popple 提交者: akpm

mm/gup.c: fix formatting in check_and_migrate_movable_page()

Commit b05a79d4 ("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.comSigned-off-by: NAlistair Popple <apopple@nvidia.com>
Reported-by: NDavid Hildenbrand <david@redhat.com>
Reviewed-by: NDavid Hildenbrand <david@redhat.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
上级 35fcd75a
......@@ -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;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册