From: Ma Wupeng mawupeng1@huawei.com
Commit b27abaccf8e8 ("mm/mempolicy: add MPOL_PREFERRED_MANY for multiple preferred nodes") add MPOL_PREFERRED_MANY which will return -1 if page node id is not in nodes. However this is useful for linux-v5.15 since commit 269fbe72cded ("mm/mempolicy: use unified 'nodes' for bind/interleave/prefer policies") already unify bind/prefer policies. While this patch does not exists during backport. To fix this, drop checking v.nodes for prefer.
Ma Wupeng (1): mm/mempolicy: check preferred_node rather than nodes for MPOL_PREFERRED
mm/mempolicy.c | 2 -- 1 file changed, 2 deletions(-)