block: mark bd_finish_claiming static

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Christoph Hellwig 2020-06-20 09:16:36 +02:00 коммит произвёл Jens Axboe
Родитель b818f09e46
Коммит 764b23bd9a
2 изменённых файлов: 2 добавлений и 5 удалений

Просмотреть файл

@ -1187,8 +1187,8 @@ static void bd_clear_claiming(struct block_device *whole, void *holder)
* Finish exclusive open of a block device. Mark the device as exlusively * Finish exclusive open of a block device. Mark the device as exlusively
* open by the holder and wake up all waiters for exclusive open to finish. * open by the holder and wake up all waiters for exclusive open to finish.
*/ */
void bd_finish_claiming(struct block_device *bdev, struct block_device *whole, static void bd_finish_claiming(struct block_device *bdev,
void *holder) struct block_device *whole, void *holder)
{ {
spin_lock(&bdev_lock); spin_lock(&bdev_lock);
BUG_ON(!bd_may_claim(bdev, whole, holder)); BUG_ON(!bd_may_claim(bdev, whole, holder));
@ -1203,7 +1203,6 @@ void bd_finish_claiming(struct block_device *bdev, struct block_device *whole,
bd_clear_claiming(whole, holder); bd_clear_claiming(whole, holder);
spin_unlock(&bdev_lock); spin_unlock(&bdev_lock);
} }
EXPORT_SYMBOL(bd_finish_claiming);
/** /**
* bd_abort_claiming - abort claiming of a block device * bd_abort_claiming - abort claiming of a block device

Просмотреть файл

@ -2646,8 +2646,6 @@ extern struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode,
void *holder); void *holder);
extern struct block_device *bd_start_claiming(struct block_device *bdev, extern struct block_device *bd_start_claiming(struct block_device *bdev,
void *holder); void *holder);
extern void bd_finish_claiming(struct block_device *bdev,
struct block_device *whole, void *holder);
extern void bd_abort_claiming(struct block_device *bdev, extern void bd_abort_claiming(struct block_device *bdev,
struct block_device *whole, void *holder); struct block_device *whole, void *holder);
extern void blkdev_put(struct block_device *bdev, fmode_t mode); extern void blkdev_put(struct block_device *bdev, fmode_t mode);