On Tue 01-06-21 08:55:13, Feng Tang wrote: [...] > Current memory policy code has some confusing and ambiguous part about > MPOL_LOCAL policy, as it is handled as a faked MPOL_PREFERRED one, and > there are many places having to distinguish them. Also the nodemask > intersection check needs cleanup to be more explicit for OOM use, and > handle MPOL_INTERLEAVE correctly. This patchset cleans up these and > unifies the parameter sanity check for mbind() and set_mempolicy(). Looks good to me. I would just add that this cleanup helps to make further changes easier (notably MPOL_PREFERRED_MANY) -- Michal Hocko SUSE Labs