]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f774d38e324859fd0a52e2a8a181c00085b99c4
treec1a9098927f94bc63dd67b111275a56bf21606ed
parentf53fe0bca4e839fa02f0405f2d01018047e49df4
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