Merge branch 'akpm' (patches from Andrew)
Merge misc updates from Andrew Morton: - a few misc things - ocfs2 updates - most of MM * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (159 commits) tools/testing/selftests/proc/proc-self-syscall.c: remove duplicate include proc: more robust bulk read test proc: test /proc/*/maps, smaps, smaps_rollup, statm proc: use seq_puts() everywhere proc: read kernel cpu stat pointer once proc: remove unused argument in proc_pid_lookup() fs/proc/thread_self.c: code cleanup for proc_setup_thread_self() fs/proc/self.c: code cleanup for proc_setup_self() proc: return exit code 4 for skipped tests mm,mremap: bail out earlier in mremap_to under map pressure mm/sparse: fix a bad comparison mm/memory.c: do_fault: avoid usage of stale vm_area_struct writeback: fix inode cgroup switching comment mm/huge_memory.c: fix "orig_pud" set but not used mm/hotplug: fix an imbalance with DEBUG_PAGEALLOC mm/memcontrol.c: fix bad line in comment mm/cma.c: cma_declare_contiguous: correct err handling mm/page_ext.c: fix an imbalance with kmemleak mm/compaction: pass pgdat to too_many_isolated() instead of zone mm: remove zone_lru_lock() function, access ->lru_lock directly ...
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/time64.h>
|
||||
#include <linux/numa.h>
|
||||
|
||||
#include <numa.h>
|
||||
#include <numaif.h>
|
||||
@@ -298,7 +299,7 @@ static cpu_set_t bind_to_node(int target_node)
|
||||
|
||||
CPU_ZERO(&mask);
|
||||
|
||||
if (target_node == -1) {
|
||||
if (target_node == NUMA_NO_NODE) {
|
||||
for (cpu = 0; cpu < g->p.nr_cpus; cpu++)
|
||||
CPU_SET(cpu, &mask);
|
||||
} else {
|
||||
@@ -339,7 +340,7 @@ static void bind_to_memnode(int node)
|
||||
unsigned long nodemask;
|
||||
int ret;
|
||||
|
||||
if (node == -1)
|
||||
if (node == NUMA_NO_NODE)
|
||||
return;
|
||||
|
||||
BUG_ON(g->p.nr_nodes > (int)sizeof(nodemask)*8);
|
||||
@@ -1363,7 +1364,7 @@ static void init_thread_data(void)
|
||||
int cpu;
|
||||
|
||||
/* Allow all nodes by default: */
|
||||
td->bind_node = -1;
|
||||
td->bind_node = NUMA_NO_NODE;
|
||||
|
||||
/* Allow all CPUs by default: */
|
||||
CPU_ZERO(&td->bind_cpumask);
|
||||
|
Reference in New Issue
Block a user