mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
sbitmap: Delete old sbitmap_queue_get_shallow()
Since __sbitmap_queue_get_shallow() was introduced in commit c05e667337
("sbitmap: add sbitmap_get_shallow() operation"), it has not been used.
Delete __sbitmap_queue_get_shallow() and rename public
__sbitmap_queue_get_shallow() -> sbitmap_queue_get_shallow() as it is odd
to have public __foo but no foo at all.
Signed-off-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/1644322024-105340-1-git-send-email-john.garry@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -557,14 +557,14 @@ unsigned long __sbitmap_queue_get_batch(struct sbitmap_queue *sbq, int nr_tags,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __sbitmap_queue_get_shallow(struct sbitmap_queue *sbq,
|
||||
unsigned int shallow_depth)
|
||||
int sbitmap_queue_get_shallow(struct sbitmap_queue *sbq,
|
||||
unsigned int shallow_depth)
|
||||
{
|
||||
WARN_ON_ONCE(shallow_depth < sbq->min_shallow_depth);
|
||||
|
||||
return sbitmap_get_shallow(&sbq->sb, shallow_depth);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(__sbitmap_queue_get_shallow);
|
||||
EXPORT_SYMBOL_GPL(sbitmap_queue_get_shallow);
|
||||
|
||||
void sbitmap_queue_min_shallow_depth(struct sbitmap_queue *sbq,
|
||||
unsigned int min_shallow_depth)
|
||||
|
Reference in New Issue
Block a user