summaryrefslogtreecommitdiff
path: root/net/ife
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2020-11-22 15:35:45 +0000
committerJens Axboe <axboe@kernel.dk>2020-12-07 17:12:49 -0700
commitb78beea038a3087df63bba7adaacb476a8ca95af (patch)
tree296886e70357e7c8b78718e3604126d4867c1e0e /net/ife
parentf6f371f7db42917c7b2a861c4fc923cb352ce5a1 (diff)
downloadlinux-next-b78beea038a3087df63bba7adaacb476a8ca95af.tar.gz
sbitmap: optimise sbitmap_deferred_clear()
Because of spinlocks and atomics sbitmap_deferred_clear() have to reload &sb->map[index] on each access even though the map address won't change. Pass in sbitmap_word instead of {sb, index}, so it's cached in a variable. It also improves code generation of sbitmap_find_bit_in_index(). Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Reviewed-by: John Garry <john.garry@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/ife')
0 files changed, 0 insertions, 0 deletions