aboutsummaryrefslogtreecommitdiffstats
path: root/mm/nommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/nommu.c')
-rw-r--r--mm/nommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index 18c1b932e2c4..87854a55829d 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -1907,7 +1907,7 @@ int __vm_enough_memory(struct mm_struct *mm, long pages, int cap_sys_admin)
1907 */ 1907 */
1908 free -= global_page_state(NR_SHMEM); 1908 free -= global_page_state(NR_SHMEM);
1909 1909
1910 free += nr_swap_pages; 1910 free += get_nr_swap_pages();
1911 1911
1912 /* 1912 /*
1913 * Any slabs which are created with the 1913 * Any slabs which are created with the