All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] swap-choose-swap-device-according-to-numa-node-v2-fix.patch removed from -mm tree
@ 2017-09-06 23:09 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-09-06 23:09 UTC (permalink / raw)
  To: akpm, aaron.lu, andi, hughd, mhocko, minchan, tim.c.chen,
	ying.huang, mm-commits


The patch titled
     Subject: swap-choose-swap-device-according-to-numa-node-v2-fix
has been removed from the -mm tree.  Its filename was
     swap-choose-swap-device-according-to-numa-node-v2-fix.patch

This patch was dropped because it was folded into swap-choose-swap-device-according-to-numa-node.patch

------------------------------------------------------
From: Andrew Morton <akpm@linux-foundation.org>
Subject: swap-choose-swap-device-according-to-numa-node-v2-fix

use kmalloc_array()

Cc: "Chen, Tim C" <tim.c.chen@intel.com>
Cc: Aaron Lu <aaron.lu@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/swapfile.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN mm/swapfile.c~swap-choose-swap-device-according-to-numa-node-v2-fix mm/swapfile.c
--- a/mm/swapfile.c~swap-choose-swap-device-according-to-numa-node-v2-fix
+++ a/mm/swapfile.c
@@ -3700,7 +3700,8 @@ static int __init swapfile_init(void)
 {
 	int nid;
 
-	swap_avail_heads = kmalloc(nr_node_ids * sizeof(struct plist_head), GFP_KERNEL);
+	swap_avail_heads = kmalloc_array(nr_node_ids, sizeof(struct plist_head),
+					 GFP_KERNEL);
 	if (!swap_avail_heads) {
 		pr_emerg("Not enough memory for swap heads, swap is disabled\n");
 		return -ENOMEM;
_

Patches currently in -mm which might be from akpm@linux-foundation.org are

swap-choose-swap-device-according-to-numa-node.patch
mmfork-introduce-madv_wipeonfork-fix.patch


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

only message in thread, other threads:[~2017-09-06 23:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-06 23:09 [folded-merged] swap-choose-swap-device-according-to-numa-node-v2-fix.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.