[PATCH 0/3] nodemask: align nodes_and{,not} with underlying bitmap ops

Yury Norov posted 3 patches 3 weeks, 2 days ago
include/linux/nodemask.h | 8 ++++----
kernel/cgroup/cpuset.c   | 7 +++----
mm/memory-tiers.c        | 3 +--
mm/mempolicy.c           | 3 +--
4 files changed, 9 insertions(+), 12 deletions(-)
[PATCH 0/3] nodemask: align nodes_and{,not} with underlying bitmap ops
Posted by Yury Norov 3 weeks, 2 days ago
nodes_and{,not} are void despite that underlying bitmap_and(,not) return
boolean, true if the result bitmap is non-empty. Align nodemask API, and
simplify client code.

Yury Norov (3):
  nodemask: propagate boolean for nodes_and{,not}
  mm: use nodes_and() return value to simplify client code
  cgroup: use nodes_and() output where appropriate

 include/linux/nodemask.h | 8 ++++----
 kernel/cgroup/cpuset.c   | 7 +++----
 mm/memory-tiers.c        | 3 +--
 mm/mempolicy.c           | 3 +--
 4 files changed, 9 insertions(+), 12 deletions(-)

-- 
2.43.0
Re: [PATCH 0/3] nodemask: align nodes_and{,not} with underlying bitmap ops
Posted by Joshua Hahn 3 weeks, 2 days ago
On Wed, 14 Jan 2026 12:22:12 -0500 Yury Norov <ynorov@nvidia.com> wrote:

> nodes_and{,not} are void despite that underlying bitmap_and(,not) return
> boolean, true if the result bitmap is non-empty. Align nodemask API, and
> simplify client code.
> 
> Yury Norov (3):
>   nodemask: propagate boolean for nodes_and{,not}
>   mm: use nodes_and() return value to simplify client code
>   cgroup: use nodes_and() output where appropriate
> 
>  include/linux/nodemask.h | 8 ++++----
>  kernel/cgroup/cpuset.c   | 7 +++----
>  mm/memory-tiers.c        | 3 +--
>  mm/mempolicy.c           | 3 +--
>  4 files changed, 9 insertions(+), 12 deletions(-)
> 
> -- 
> 2.43.0

The entire set LGTM, thank you for this patchset! Feel free to add:

Reviewed-by: Joshua Hahn <joshua.hahnjy@gmail.com>

For the entire series. Have a great day!
Joshua