|
@@ -1828,7 +1828,7 @@ repeat:
|
|
|
page = __page_cache_alloc(gfp | __GFP_COLD);
|
|
|
if (!page)
|
|
|
return ERR_PTR(-ENOMEM);
|
|
|
- err = add_to_page_cache_lru(page, mapping, index, GFP_KERNEL);
|
|
|
+ err = add_to_page_cache_lru(page, mapping, index, gfp);
|
|
|
if (unlikely(err)) {
|
|
|
page_cache_release(page);
|
|
|
if (err == -EEXIST)
|
|
@@ -1925,10 +1925,7 @@ static struct page *wait_on_page_read(struct page *page)
|
|
|
* @gfp: the page allocator flags to use if allocating
|
|
|
*
|
|
|
* This is the same as "read_mapping_page(mapping, index, NULL)", but with
|
|
|
- * any new page allocations done using the specified allocation flags. Note
|
|
|
- * that the Radix tree operations will still use GFP_KERNEL, so you can't
|
|
|
- * expect to do this atomically or anything like that - but you can pass in
|
|
|
- * other page requirements.
|
|
|
+ * any new page allocations done using the specified allocation flags.
|
|
|
*
|
|
|
* If the page does not get brought uptodate, return -EIO.
|
|
|
*/
|