staging: ion: add ion map iommu APIs
[firefly-linux-kernel-4.4.55.git] / fs / splice.c
index 5fc1e50a7f30c4258c018f560709c54fda005b40..801c21cd77fe4f1d344aed6fa7b28369972d82b2 100644 (file)
@@ -360,7 +360,7 @@ __generic_file_splice_read(struct file *in, loff_t *ppos,
                                break;
 
                        error = add_to_page_cache_lru(page, mapping, index,
-                                       GFP_KERNEL & mapping_gfp_mask(mapping));
+                                  mapping_gfp_constraint(mapping, GFP_KERNEL));
                        if (unlikely(error)) {
                                page_cache_release(page);
                                if (error == -EEXIST)