Skip to content

Commit

Permalink
block: remove bio_devname
Browse files Browse the repository at this point in the history
All callers are gone, so remove this wrapper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20220304180105.409765-11-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Mar 7, 2022
1 parent 734294e commit 9793961
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions block/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,12 +807,6 @@ int bio_init_clone(struct block_device *bdev, struct bio *bio,
}
EXPORT_SYMBOL(bio_init_clone);

const char *bio_devname(struct bio *bio, char *buf)
{
return bdevname(bio->bi_bdev, buf);
}
EXPORT_SYMBOL(bio_devname);

/**
* bio_full - check if the bio is full
* @bio: bio to check
Expand Down
2 changes: 0 additions & 2 deletions include/linux/bio.h
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,6 @@ static inline void bio_release_pages(struct bio *bio, bool mark_dirty)
__bio_release_pages(bio, mark_dirty);
}

extern const char *bio_devname(struct bio *bio, char *buffer);

#define bio_dev(bio) \
disk_devt((bio)->bi_bdev->bd_disk)

Expand Down

0 comments on commit 9793961

Please sign in to comment.