[Devel] [PATCH RHEL7 COMMIT] ms/MIPS: Use NUMA_NO_NODE instead of -1 for node ID.
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Sep 3 08:27:33 PDT 2015
The commit is pushed to "branch-rh7-3.10.0-229.7.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.6.6
------>
commit 61913332fac411269855bf321d34f87f7a4fb060
Author: Andrey Ryabinin <aryabinin at odin.com>
Date: Thu Sep 3 19:27:33 2015 +0400
ms/MIPS: Use NUMA_NO_NODE instead of -1 for node ID.
https://jira.sw.ru/browse/PSBM-26429
From: Ralf Baechle <ralf at linux-mips.org>
commit 761845f0f68cf6eba9cad0a58d977b89f8d4486f upstream.
Original patch by Jianguo Wu <wujianguo at huawei.com>.
Signed-off-by: Ralf Baechle <ralf at linux-mips.org>
Signed-off-by: Andrey Ryabinin <aryabinin at odin.com>
Signed-off-by: Andrey Ryabinin <aryabinin at odin.com>
---
arch/mips/kernel/module.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/mips/kernel/module.c b/arch/mips/kernel/module.c
index 977a623..2a52568 100644
--- a/arch/mips/kernel/module.c
+++ b/arch/mips/kernel/module.c
@@ -23,6 +23,7 @@
#include <linux/moduleloader.h>
#include <linux/elf.h>
#include <linux/mm.h>
+#include <linux/numa.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/fs.h>
@@ -46,7 +47,7 @@ static DEFINE_SPINLOCK(dbe_lock);
void *module_alloc(unsigned long size)
{
return __vmalloc_node_range(size, 1, MODULE_START, MODULE_END,
- GFP_KERNEL, PAGE_KERNEL, -1,
+ GFP_KERNEL, PAGE_KERNEL, NUMA_NO_NODE,
__builtin_return_address(0));
}
#endif
More information about the Devel
mailing list