The patch titled mempolicy: remove redundant check in __mpol_equal() has been added to the -mm tree. Its filename is mempolicy-remove-redundant-check-in-__mpol_equal.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mempolicy: remove redundant check in __mpol_equal() From: Namhyung Kim <namhyung@xxxxxxxxx> The 'flags' field is already checked, no need to do it again. Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx> Cc: Bob Liu <lliubbo@xxxxxxxxx> Cc: Lee Schermerhorn <lee.schermerhorn@xxxxxx> Reviewed-by: Minchan Kim <minchan.kim@xxxxxxxxx> Cc: Andi Kleen <andi@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mempolicy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -puN mm/mempolicy.c~mempolicy-remove-redundant-check-in-__mpol_equal mm/mempolicy.c --- a/mm/mempolicy.c~mempolicy-remove-redundant-check-in-__mpol_equal +++ a/mm/mempolicy.c @@ -1979,8 +1979,7 @@ int __mpol_equal(struct mempolicy *a, st case MPOL_INTERLEAVE: return nodes_equal(a->v.nodes, b->v.nodes); case MPOL_PREFERRED: - return a->v.preferred_node == b->v.preferred_node && - a->flags == b->flags; + return a->v.preferred_node == b->v.preferred_node; default: BUG(); return 0; _ Patches currently in -mm which might be from namhyung@xxxxxxxxx are linux-next.patch mm-fix-dubious-code-in-__count_immobile_pages.patch mm-batch-free-pcp-list-if-possible.patch mm-batch-free-pcp-list-if-possible-fix.patch mempolicy-remove-redundant-check-in-__mpol_equal.patch select-remove-unused-max_select_seconds.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