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 /block/partitions | |
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 'block/partitions')
-rw-r--r-- | block/partitions/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/partitions/core.c b/block/partitions/core.c index 4f7a1a9cd544..2415bffc2771 100644 --- a/block/partitions/core.c +++ b/block/partitions/core.c @@ -262,7 +262,7 @@ static void part_release(struct device *dev) if (MAJOR(dev->devt) == BLOCK_EXT_MAJOR) blk_free_ext_minor(MINOR(dev->devt)); put_disk(dev_to_bdev(dev)->bd_disk); - bdput(dev_to_bdev(dev)); + iput(dev_to_bdev(dev)->bd_inode); } static int part_uevent(struct device *dev, struct kobj_uevent_env *env) |