swap: fix "add per-partition lock for swapfile" for nommu
Subsystems (2)
PATCH 1/1 swap: fix "add per-partition lock for swapfile" for nommu
The patch "swap: add per-partition lock for swapfile" made the nr_swap_pages variable unaccessible but forgot to change the mm/nommu.c file that uses it. This does the trivial conversion to let us build nommu kernels again
Signed-off-by Arnd Bergmann <[email protected]>
mm/nommu.c +1 -1
@@ -1906,7 +1906,7 @@ int __vm_enough_memory(struct mm_struct *mm, long pages, int cap_sys_admin)*/ free -=global_page_state (NR_SHMEM ); - free += nr_swap_pages; + free +=get_nr_swap_pages ();/* * Any slabs which are created with the
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 6 lines · Arnd Bergmann
The patch "swap: add per-partition lock for swapfile" made the
nr_swap_pagesvariable unaccessible but forgot to change themm/nommu.cfile that uses it. This does the trivial conversion to let us build nommu kernels againSigned-off-by Arnd Bergmann <[email protected]>
Reviewed-by Rik van Riel <[email protected]>
Signature · 7 lines
All rights reversed -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>