- sys_mbind-use-cpuset-accessors-for-mems_allowed.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     sys_mbind: use cpuset accessors for mems_allowed
has been removed from the -mm tree.  Its filename was
     sys_mbind-use-cpuset-accessors-for-mems_allowed.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
Subject: sys_mbind: use cpuset accessors for mems_allowed
From: Andy Whitcroft <apw@xxxxxxxxxxxx>

sys_mbind is currently accessing mems_allowed directly.  This
does not exist when CONFIG_CPUSETS is not defined.  This leads
to the following error:

  mm/mempolicy.c: In function `sys_mbind':
  mm/mempolicy.c:885: error: structure has no member named `mems_allowed'

Use the cpuset accessors.

Signed-off-by: Andy Whitcroft <apw@xxxxxxxxxxxx>
Cc: Christoph Lameter <clameter@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 mm/mempolicy.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN mm/mempolicy.c~sys_mbind-use-cpuset-accessors-for-mems_allowed mm/mempolicy.c
--- a/mm/mempolicy.c~sys_mbind-use-cpuset-accessors-for-mems_allowed
+++ a/mm/mempolicy.c
@@ -880,9 +880,11 @@ asmlinkage long sys_mbind(unsigned long 
 {
 	nodemask_t nodes;
 	int err;
+	nodemask_t allowed_nodes;
 
 	err = get_nodes(&nodes, nmask, maxnode);
-	nodes_and(nodes, nodes, current->mems_allowed);
+	allowed_nodes = cpuset_mems_allowed(current);
+	nodes_and(nodes, nodes, allowed_nodes);
 	if (err)
 		return err;
 	return do_mbind(start, len, mode, &nodes, flags);
_

Patches currently in -mm which might be from apw@xxxxxxxxxxxx are

origin.patch
fix-sparsemem-on-cell.patch
sys_mbind-use-cpuset-accessors-for-mems_allowed.patch
pci-device-ensure-sysdata-initialised-v2.patch
slab-cache-alloc-cleanups.patch
lumpy-reclaim-v2.patch
lumpy-reclaim-v2-page_to_pfn-fix.patch
lumpy-reclaim-v2-tidy.patch
deal-with-cases-of-zone_dma-meaning-the-first-zone.patch
optional-zone_dma-in-the-vm.patch
zoneid-fix-up-calculations-for-zoneid_pgshift.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux