summaryrefslogtreecommitdiff
path: root/block/blk-mq.h
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-04-14 10:59:58 +0300
committerJens Axboe <axboe@fb.com>2017-04-14 23:06:52 +0300
commitc05e66733788118377c21a913c1bc7b64bccc167 (patch)
tree8c13d6e75fe1ceac7db6f1cb5b7723ba5fe742b7 /block/blk-mq.h
parent84253394927c4352652d0b118ad9583f5646959b (diff)
downloadlinux-c05e66733788118377c21a913c1bc7b64bccc167.tar.xz
sbitmap: add sbitmap_get_shallow() operation
This operation supports the use case of limiting the number of bits that can be allocated for a given operation. Rather than setting aside some bits at the end of the bitmap, we can set aside bits in each word of the bitmap. This means we can keep the allocation hints spread out and support sbitmap_resize() nicely at the cost of lower granularity for the allowed depth. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.h')
0 files changed, 0 insertions, 0 deletions