The patch titled Mempolicy: fix mpol_to_str() to handle ignore mode flags has been removed from the -mm tree. Its filename was mempolicy-use-mpol_f_local-to-indicate-preferred-local-policy-fix.patch This patch was dropped because it was folded into mempolicy-use-mpol_f_local-to-indicate-preferred-local-policy.patch The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: Mempolicy: fix mpol_to_str() to handle ignore mode flags From: Lee Schermerhorn <Lee.Schermerhorn@xxxxxx> Fixes problem introduced by my previous patch: mempolicy-use-mpol_f_local-to-indicate-preferred-local-policy.patch Eliminate display of bogus '=' flag indicator in presence of internal mode flags. Without this fix, on 25-rc8-mm1, a display of a process' numa_maps will show, e.g., default policy as "default=". Worse, if the maps include longer policies, such as "interleave:0-3", this problem will lose the string terminator after the "<mode>=" and display subsequent default policies as "default=ve:0-3". Signed-off-by: Lee Schermerhorn <lee.schermerhorn@xxxxxx> Cc: Christoph Lameter <clameter@xxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: Mel Gorman <mel@xxxxxxxxx> Cc: Andi Kleen <ak@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mempolicy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/mempolicy.c~mempolicy-use-mpol_f_local-to-indicate-preferred-local-policy-fix mm/mempolicy.c --- a/mm/mempolicy.c~mempolicy-use-mpol_f_local-to-indicate-preferred-local-policy-fix +++ a/mm/mempolicy.c @@ -2002,7 +2002,7 @@ static inline int mpol_to_str(char *buff strcpy(p, policy_types[mode]); p += l; - if (flags) { + if (flags & MPOL_MODE_FLAGS) { int need_bar = 0; if (buffer + maxlen < p + 2) _ Patches currently in -mm which might be from Lee.Schermerhorn@xxxxxx are mm-filter-based-on-a-nodemask-as-well-as-a-gfp_mask.patch mempolicy-convert-mpol-constants-to-enum.patch mempolicy-support-optional-mode-flags.patch mempolicy-add-mpol_f_static_nodes-flag.patch mempolicy-add-mpol_f_relative_nodes-flag.patch mempolicy-update-numa-memory-policy-documentation.patch mempolicy-move-rebind-functions.patch mempolicy-create-mempolicy_operations-structure.patch mempolicy-small-header-file-cleanup.patch mempolicy-disallow-static-or-relative-flags-for-local-preferred-mode.patch mempolicy-fix-parsing-of-tmpfs-mpol-mount-option.patch fix-indentation.patch mempolicy-use-mpol_f_local-to-indicate-preferred-local-policy.patch mempolicy-use-mpol_f_local-to-indicate-preferred-local-policy-fix.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