diff options
author | Omar Sandoval <osandov@fb.com> | 2017-04-14 10:59:58 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-14 23:06:52 +0300 |
commit | c05e66733788118377c21a913c1bc7b64bccc167 (patch) | |
tree | 8c13d6e75fe1ceac7db6f1cb5b7723ba5fe742b7 /sound/usb/proc.c | |
parent | 84253394927c4352652d0b118ad9583f5646959b (diff) | |
download | linux-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 'sound/usb/proc.c')
0 files changed, 0 insertions, 0 deletions