summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-09-09 21:09:08 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-09-09 21:09:08 -0700
commit6a0fb424e9c28fd547161444e89ef9ff4275251b (patch)
tree822dd516fcb486690c2c20b0f024dd1888b08511
parent95b883004339d4b68acd2bc5643984bd6dbb7571 (diff)
[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.
-rw-r--r--mm/vmscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 5ed1ec3eda52..89d801e67979 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -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.
*/
if (PagePrivate(page)) {
- if (!try_to_release_page(page, 0))
+ if (!try_to_release_page(page, gfp_mask))
goto keep_locked;
if (!mapping && page_count(page) == 1)
goto free_it;