Re: [PATCH v4 04/13] mm/mempolicy: allow preferred code to take a nodemask

2021-04-19 Thread Feng Tang
On Wed, Apr 14, 2021 at 02:55:39PM +0200, Michal Hocko wrote: > On Wed 17-03-21 11:40:01, Feng Tang wrote: > > From: Dave Hansen > > > > Create a helper function (mpol_new_preferred_many()) which is usable > > both by the old, single-node MPOL_PREFERRED and the new > > MPOL_PREFERRED_MANY. > >

Re: [PATCH v4 04/13] mm/mempolicy: allow preferred code to take a nodemask

2021-04-14 Thread Michal Hocko
On Wed 17-03-21 11:40:01, Feng Tang wrote: > From: Dave Hansen > > Create a helper function (mpol_new_preferred_many()) which is usable > both by the old, single-node MPOL_PREFERRED and the new > MPOL_PREFERRED_MANY. > > Enforce the old single-node MPOL_PREFERRED behavior in the "new" > version

[PATCH v4 04/13] mm/mempolicy: allow preferred code to take a nodemask

2021-03-16 Thread Feng Tang
From: Dave Hansen Create a helper function (mpol_new_preferred_many()) which is usable both by the old, single-node MPOL_PREFERRED and the new MPOL_PREFERRED_MANY. Enforce the old single-node MPOL_PREFERRED behavior in the "new" version of mpol_new_preferred() which calls