mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04: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:
parent
3301bc5335
commit
3f607293b7
3 changed files with 8 additions and 34 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue