]> git.baikalelectronics.ru Git - kernel.git/commit
sbitmap: remove unnecessary code in __sbitmap_queue_get_batch
authorLiu Song <liusong@linux.alibaba.com>
Fri, 26 Aug 2022 03:14:13 +0000 (11:14 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 26 Aug 2022 13:32:53 +0000 (07:32 -0600)
commitddbfc34fcf5d0bc33b006b90c580c56edeb31068
tree517dcae1f8faf3dcf83e14c2183a9bc4fec55433
parentf2cc648e12285c53365c2bcacbcd919022f4d3a8
sbitmap: remove unnecessary code in __sbitmap_queue_get_batch

If "nr + nr_tags <= map_depth", then the value of nr_tags will not be
greater than map_depth, so no additional comparison is required.

Signed-off-by: Liu Song <liusong@linux.alibaba.com>
Link: https://lore.kernel.org/r/1661483653-27326-1-git-send-email-liusong@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/sbitmap.c