diff options
author | Christoph Hellwig <hch@lst.de> | 2021-07-22 09:54:02 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-02 13:37:28 -0600 |
commit | 2f4731dcd0bb73379fbb9e3eb07ae7324125caef (patch) | |
tree | 2b1a971a15bd396fd97d2fdc7c2a2b2a7848e0d6 /fs/block_dev.c | |
parent | 14cf1dbb55bb07427babee425fd2a8a9300737cc (diff) | |
download | linux-2f4731dcd0bb73379fbb9e3eb07ae7324125caef.tar.gz linux-2f4731dcd0bb73379fbb9e3eb07ae7324125caef.tar.bz2 linux-2f4731dcd0bb73379fbb9e3eb07ae7324125caef.zip |
block: remove bdput
Now that we've stopped using inode references for anything meaninful
in the block layer get rid of the helper to put it and just open code
the call to iput on the block_device inode.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Chaitanya Kulkarni <ckulkarnilinux@gmail.com>
Link: https://lore.kernel.org/r/20210722075402.983367-10-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 4f2c4e9e84f5..6658f40ae492 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -934,12 +934,6 @@ long nr_blockdev_pages(void) return ret; } -void bdput(struct block_device *bdev) -{ - iput(bdev->bd_inode); -} -EXPORT_SYMBOL(bdput); - /** * bd_may_claim - test whether a block device can be claimed * @bdev: block device of interest |