mm/gup: change GUP fast to use flags rather than a write 'bool'
[linux-2.6-microblaze.git] / drivers / fpga / dfl-afu-dma-region.c
index e18a786..c438722 100644 (file)
@@ -102,7 +102,7 @@ static int afu_dma_pin_pages(struct dfl_feature_platform_data *pdata,
                goto unlock_vm;
        }
 
-       pinned = get_user_pages_fast(region->user_addr, npages, 1,
+       pinned = get_user_pages_fast(region->user_addr, npages, FOLL_WRITE,
                                     region->pages);
        if (pinned < 0) {
                ret = pinned;