* [folded-merged] mm-mempolicy-dont-handle-mpol_local-like-a-fake-mpol_preferred-policy-v4-fix.patch removed from -mm tree
@ 2021-07-01 0:55 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-07-01 0:55 UTC (permalink / raw)
To: feng.tang, mhocko, mm-commits
The patch titled
Subject: mm-mempolicy-dont-handle-mpol_local-like-a-fake-mpol_preferred-policy-v4-fix
has been removed from the -mm tree. Its filename was
mm-mempolicy-dont-handle-mpol_local-like-a-fake-mpol_preferred-policy-v4-fix.patch
This patch was dropped because it was folded into mm-mempolicy-dont-handle-mpol_local-like-a-fake-mpol_preferred-policy.patch
------------------------------------------------------
From: Feng Tang <feng.tang@intel.com>
Subject: mm-mempolicy-dont-handle-mpol_local-like-a-fake-mpol_preferred-policy-v4-fix
refine code and comments of mpol_set_nodemask(), per Michal
Link: https://lkml.kernel.org/r/20210603081807.GE56979@shbuild999.sh.intel.com
Signed-off-by: Feng Tang <feng.tang@intel.com>
Suggested-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/mempolicy.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
--- a/mm/mempolicy.c~mm-mempolicy-dont-handle-mpol_local-like-a-fake-mpol_preferred-policy-v4-fix
+++ a/mm/mempolicy.c
@@ -226,11 +226,12 @@ static int mpol_set_nodemask(struct memp
{
int ret;
- /* if mode is MPOL_DEFAULT, pol is NULL. This is right. */
- if (pol == NULL)
- return 0;
-
- if (pol->mode == MPOL_LOCAL)
+ /*
+ * Default (pol==NULL) resp. local memory policies are not a
+ * subject of any remapping. They also do not need any special
+ * constructor.
+ */
+ if (!pol || pol->mode == MPOL_LOCAL)
return 0;
/* Check N_MEMORY */
_
Patches currently in -mm which might be from feng.tang@intel.com are
mm-mempolicy-cleanup-nodemask-intersection-check-for-oom.patch
mm-mempolicy-dont-handle-mpol_local-like-a-fake-mpol_preferred-policy.patch
mm-mempolicy-unify-the-parameter-sanity-check-for-mbind-and-set_mempolicy.patch
mm-mempolicy-unify-the-parameter-sanity-check-for-mbind-and-set_mempolicy-v4.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-01 0:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-01 0:55 [folded-merged] mm-mempolicy-dont-handle-mpol_local-like-a-fake-mpol_preferred-policy-v4-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.