diff options
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 5941f9801363..bd9b4ea307b2 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -928,8 +928,8 @@ found: | |||
928 | error = 1; | 928 | error = 1; |
929 | if (!inode) | 929 | if (!inode) |
930 | goto out; | 930 | goto out; |
931 | /* Precharge page using GFP_KERNEL while we can wait */ | 931 | /* Charge page using GFP_HIGHUSER_MOVABLE while we can wait */ |
932 | error = mem_cgroup_cache_charge(page, current->mm, GFP_KERNEL); | 932 | error = mem_cgroup_cache_charge(page, current->mm, GFP_HIGHUSER_MOVABLE); |
933 | if (error) | 933 | if (error) |
934 | goto out; | 934 | goto out; |
935 | error = radix_tree_preload(GFP_KERNEL); | 935 | error = radix_tree_preload(GFP_KERNEL); |
@@ -1379,7 +1379,7 @@ repeat: | |||
1379 | 1379 | ||
1380 | /* Precharge page while we can wait, compensate after */ | 1380 | /* Precharge page while we can wait, compensate after */ |
1381 | error = mem_cgroup_cache_charge(filepage, current->mm, | 1381 | error = mem_cgroup_cache_charge(filepage, current->mm, |
1382 | gfp & ~__GFP_HIGHMEM); | 1382 | GFP_HIGHUSER_MOVABLE); |
1383 | if (error) { | 1383 | if (error) { |
1384 | page_cache_release(filepage); | 1384 | page_cache_release(filepage); |
1385 | shmem_unacct_blocks(info->flags, 1); | 1385 | shmem_unacct_blocks(info->flags, 1); |