diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-09-17 20:07:15 -0700 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-09-26 12:19:12 -0700 |
commit | 97848c10f9f8a8ce4296b149d06cab424eba05b3 (patch) | |
tree | 963487077ade5afd1c1cea2372aa1bb68084127d /include/linux/nodemask.h | |
parent | e3783c805db29c8cb3e8dcc8160f6449da1100e3 (diff) |
lib/bitmap: remove bitmap_ord_to_pos
Now that we have find_nth_bit(), we can drop bitmap_ord_to_pos().
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'include/linux/nodemask.h')
-rw-r--r-- | include/linux/nodemask.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/nodemask.h b/include/linux/nodemask.h index 4b71a96190a8..0c45fb066caa 100644 --- a/include/linux/nodemask.h +++ b/include/linux/nodemask.h @@ -508,8 +508,7 @@ static inline int node_random(const nodemask_t *maskp) w = nodes_weight(*maskp); if (w) - bit = bitmap_ord_to_pos(maskp->bits, - get_random_int() % w, MAX_NUMNODES); + bit = find_nth_bit(maskp->bits, MAX_NUMNODES, get_random_int() % w); return bit; #else return 0; |