mm/mempolicy.c: remove unnecessary is_valid_nodemask()
authorZhihui Zhang <zzhsuny@gmail.com>
Fri, 19 Dec 2014 00:17:09 +0000 (16:17 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 19 Dec 2014 03:08:10 +0000 (19:08 -0800)
commit859f7ef142a956676cb387b90f18e2e71e959c68
tree3ab6951a0023b6dafa27be536cb181fcabd89c1e
parent44e8967d591686463e84a88b46b03beba3ab49fb
mm/mempolicy.c: remove unnecessary is_valid_nodemask()

When nodes is true, nsc->mask2 has already been filtered by nsc->mask1,
which has already factored in node_states[N_MEMORY].

Signed-off-by: Zhihui Zhang <zzhsuny@gmail.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c