aboutsummaryrefslogtreecommitdiffstats
path: root/mm/swap_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/swap_state.c')
-rw-r--r--mm/swap_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/swap_state.c b/mm/swap_state.c
index bcb472769299..81c825f67a7f 100644
--- a/mm/swap_state.c
+++ b/mm/swap_state.c
@@ -128,7 +128,7 @@ void __delete_from_swap_cache(struct page *page)
128 * Allocate swap space for the page and add the page to the 128 * Allocate swap space for the page and add the page to the
129 * swap cache. Caller needs to hold the page lock. 129 * swap cache. Caller needs to hold the page lock.
130 */ 130 */
131int add_to_swap(struct page * page, gfp_t gfp_mask) 131int add_to_swap(struct page *page)
132{ 132{
133 swp_entry_t entry; 133 swp_entry_t entry;
134 int err; 134 int err;
@@ -153,7 +153,7 @@ int add_to_swap(struct page * page, gfp_t gfp_mask)
153 * Add it to the swap cache and mark it dirty 153 * Add it to the swap cache and mark it dirty
154 */ 154 */
155 err = add_to_swap_cache(page, entry, 155 err = add_to_swap_cache(page, entry,
156 gfp_mask|__GFP_NOMEMALLOC|__GFP_NOWARN); 156 __GFP_HIGH|__GFP_NOMEMALLOC|__GFP_NOWARN);
157 157
158 switch (err) { 158 switch (err) {
159 case 0: /* Success */ 159 case 0: /* Success */