summaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-11-29 20:35:16 +0100
committerJens Axboe <axboe@kernel.dk>2018-11-29 21:58:34 +0100
commit27fae429acee1e9418059e7fa545438075af5256 (patch)
tree9d1258df6416f59265bfca42b13c46576963bb9b /fs/block_dev.c
parentblk-mq: use plug for devices that implement ->commits_rqs() (diff)
downloadlinux-27fae429acee1e9418059e7fa545438075af5256.tar.xz
linux-27fae429acee1e9418059e7fa545438075af5256.zip
sbitmap: don't loop for find_next_zero_bit() for !round_robin
If we aren't forced to do round robin tag allocation, just use the allocation hint to find the index for the tag word, don't use it for the offset inside the word. This avoids a potential extra round trip in the bit looping, and since we're fetching this cacheline, we may as well check the whole word from the start. Reviewed-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions