diff options
author | Yury Norov <yury.norov@gmail.com> | 2021-08-14 14:17:10 -0700 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-01-15 08:47:31 -0800 |
commit | 801a57365fc836d7ec866e2069d0b21d79925c1e (patch) | |
tree | 76af2ac9496f91c85eb00a66be42235c82a1bbc6 /fs/squashfs/squashfs_fs_sb.h | |
parent | 749443de8dde3b8b420ee8b4daac4d929a6adeb9 (diff) | |
download | linux-next-801a57365fc836d7ec866e2069d0b21d79925c1e.tar.gz |
mm/percpu: micro-optimize pcpu_is_populated()
bitmap_next_clear_region() calls find_next_zero_bit() and find_next_bit()
sequentially to find a range of clear bits. In case of pcpu_is_populated()
there's a chance to return earlier if bitmap has all bits set.
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'fs/squashfs/squashfs_fs_sb.h')
0 files changed, 0 insertions, 0 deletions