All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] swap-add-per-partition-lock-for-swapfile-fix-for-nommu.patch removed from -mm tree
@ 2013-02-22 23:49 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2013-02-22 23:49 UTC (permalink / raw)
  To: arnd, shli, mm-commits


The patch titled
     Subject: swap: fix "add per-partition lock for swapfile" for nommu
has been removed from the -mm tree.  Its filename was
     swap-add-per-partition-lock-for-swapfile-fix-for-nommu.patch

This patch was dropped because it was folded into swap-add-per-partition-lock-for-swapfile.patch

------------------------------------------------------
From: Arnd Bergmann <arnd@arndb.de>
Subject: 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 <arnd@arndb.de>
Cc: Shaohua Li <shli@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/nommu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN mm/nommu.c~swap-add-per-partition-lock-for-swapfile-fix-for-nommu mm/nommu.c
--- a/mm/nommu.c~swap-add-per-partition-lock-for-swapfile-fix-for-nommu
+++ a/mm/nommu.c
@@ -1907,7 +1907,7 @@ int __vm_enough_memory(struct mm_struct 
 		 */
 		free -= global_page_state(NR_SHMEM);
 
-		free += nr_swap_pages;
+		free += get_nr_swap_pages();
 
 		/*
 		 * Any slabs which are created with the
_

Patches currently in -mm which might be from arnd@arndb.de are

origin.patch
swap-add-per-partition-lock-for-swapfile.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-22 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-22 23:49 [folded-merged] swap-add-per-partition-lock-for-swapfile-fix-for-nommu.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.