Commit 6a0fb424 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] pass the correct flags to aops->releasepage()

Restore the gfp_mask in the VM's call to a_ops->releasepage().  We can
block in there again, and XFS (at least) can use that.
parent 95b88300
...@@ -208,7 +208,7 @@ shrink_list(struct list_head *page_list, int nr_pages, ...@@ -208,7 +208,7 @@ shrink_list(struct list_head *page_list, int nr_pages,
* Otherwise, leave the page on the LRU so it is swappable. * Otherwise, leave the page on the LRU so it is swappable.
*/ */
if (PagePrivate(page)) { if (PagePrivate(page)) {
if (!try_to_release_page(page, 0)) if (!try_to_release_page(page, gfp_mask))
goto keep_locked; goto keep_locked;
if (!mapping && page_count(page) == 1) if (!mapping && page_count(page) == 1)
goto free_it; goto free_it;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment