sbitmap: simplify wrap check
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 22 Nov 2020 15:35:48 +0000 (15:35 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Dec 2020 00:12:49 +0000 (17:12 -0700)
commit0eff1f1a38a95b20fec83d0b69409c8da967fe1e
treec1a9098927f94bc63dd67b111275a56bf21606ed
parentc3250c8d2451ffbea14ba95164c59edd943ee4be
sbitmap: simplify wrap check

__sbitmap_get_word() doesn't warp if it's starting from the beginning
(i.e. initial hint is 0). Instead of stashing the original hint just set
@wrap accordingly.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/sbitmap.c