]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/infiniband/hw/usnic/usnic_uiom.c
mm/gup: add make_dirty arg to put_user_pages_dirty_lock()
[linux.git] / drivers / infiniband / hw / usnic / usnic_uiom.c
index 0b0237d41613fc4cb61ba4f1cd02430aeda74490..62e6ffa9ad78efbd138c9d19a3db386cd4497ccd 100644 (file)
@@ -75,10 +75,7 @@ static void usnic_uiom_put_pages(struct list_head *chunk_list, int dirty)
                for_each_sg(chunk->page_list, sg, chunk->nents, i) {
                        page = sg_page(sg);
                        pa = sg_phys(sg);
-                       if (dirty)
-                               put_user_pages_dirty_lock(&page, 1);
-                       else
-                               put_user_page(page);
+                       put_user_pages_dirty_lock(&page, 1, dirty);
                        usnic_dbg("pa: %pa\n", &pa);
                }
                kfree(chunk);