History

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.

Christoph Hellwig committed 5 years ago

Commit 2f4731d1 parent 14cf1db4 files · +3 −10Browse files

Showing the changes to include/linux/blkdev.h (1 of 4 files). Show all

Unified · Split

include/linux/blkdev.h+0−1
@@ -1984,7 +1984,6 @@ void blkdev_put_no_open(struct block_device *bdev); · 1983 unmodified lines
1984struct block_device *bdev_alloc(struct gendisk *disk, u8 partno);1984struct block_device *bdev_alloc(struct gendisk *disk, u8 partno);
1985void bdev_add(struct block_device *bdev, dev_t dev);1985void bdev_add(struct block_device *bdev, dev_t dev);
1986struct block_device *I_BDEV(struct inode *inode);1986struct block_device *I_BDEV(struct inode *inode);
1987void bdput(struct block_device *);
1988int truncate_bdev_range(struct block_device *bdev, fmode_t mode, loff_t lstart,1987int truncate_bdev_range(struct block_device *bdev, fmode_t mode, loff_t lstart,
1989 loff_t lend);1988 loff_t lend);
1990 1989