mm-mempolicy-use-unified-nodes-for-bind-interleave-prefer-policies.patch removed from -mm tree
The patch titled
Subject: mm/mempolicy: use unified 'nodes' for bind/interleave/prefer policies
has been removed from the -mm tree. Its filename was
mm-mempolicy-use-unified-nodes-for-bind-interleave-prefer-policies.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Ben Widawsky <[email protected]>
Subject: mm/mempolicy: use unified 'nodes' for bind/interleave/prefer policies
Current structure 'mempolicy' uses a union to store the node info for bind/interleave/perfer policies.
union {
short preferred_node; /* preferred */
nodemask_t nodes; /* interleave/bind */
/* undefined for default */
} v;Since preferred node can also be represented by a nodemask_t with only ont bit set, unify these policies with using one nodemask_t 'nodes', which can remove a union, simplify the code and make it easier to support future's new policy's node info.
---
include/linux/mempolicy.h | 7 -- mm/mempolicy.c | 96 ++++++++++++++++-------------------- 2 files changed, 46 insertions(+), 57 deletions(-)
include/linux/mempolicy.h renamed from include/linux/mempolicy.h~mm-mempolicy-use-unified-nodes-for-bind-interleave-prefer-policies +2 -5
@@ -46,11 +46,8 @@ struct mempolicy {atomic_t refcnt;unsigned short mode;/* See MPOL_* above */ unsigned short flags;/* See set_mempolicy() MPOL_F_* above */ -union { -short preferred_node;/* preferred */ -nodemask_t nodes;/* interleave/bind */ -/* undefined for default */ - } v; +nodemask_t nodes;/* interleave/bind/perfer */ +union {nodemask_t cpuset_mems_allowed;/* relative to these nodes */ nodemask_t user_nodemask;/* nodemask passed by user */
mm/mempolicy.c renamed from mm/mempolicy.c~mm-mempolicy-use-unified-nodes-for-bind-interleave-prefer-policies +44 -52
290 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are