[PATCH 08/11] mtip32xx: switch next_online_node() to runtime nodemask length
From: Yury Norov
Date: Fri Nov 27 2026 - 18:02:27 EST
In preparation for switching nodemask API to runtime nr_node_ids,
update the boundary checking condition.
Signed-off-by: Yury Norov <ynorov@xxxxxxxxxx>
---
drivers/block/mtip32xx/mtip32xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c
index 113bdb868c46..8b8b4211e41a 100644
--- a/drivers/block/mtip32xx/mtip32xx.c
+++ b/drivers/block/mtip32xx/mtip32xx.c
@@ -3630,7 +3630,7 @@ static inline int mtip_get_next_rr_node(void)
}
next_node = next_online_node(next_node);
- if (next_node == MAX_NUMNODES)
+ if (next_node >= nr_node_ids)
next_node = first_online_node;
return next_node;
}
--
2.53.0