summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.h
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-04-14 09:59:58 +0200
committerJens Axboe <axboe@fb.com>2017-04-14 22:06:52 +0200
commitc05e66733788118377c21a913c1bc7b64bccc167 (patch)
tree8c13d6e75fe1ceac7db6f1cb5b7723ba5fe742b7 /block/blk-mq.h
parentremove the mg_disk driver (diff)
downloadlinux-c05e66733788118377c21a913c1bc7b64bccc167.tar.xz
linux-c05e66733788118377c21a913c1bc7b64bccc167.zip
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