RIP ->bd_inode
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Apr 2024 00:47:14 +0000 (20:47 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 3 May 2024 06:36:56 +0000 (02:36 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
block/bdev.c
include/linux/blk_types.h

index a8c66cc1d6b893cc8b3f9699920f5b74e17a965f..0849a9cfa2b63384ce8f0bba4d941729c3cdc38e 100644 (file)
@@ -423,7 +423,6 @@ struct block_device *bdev_alloc(struct gendisk *disk, u8 partno)
        spin_lock_init(&bdev->bd_size_lock);
        mutex_init(&bdev->bd_holder_lock);
        bdev->bd_partno = partno;
-       bdev->bd_inode = inode;
        bdev->bd_mapping = &inode->i_data;
        bdev->bd_queue = disk->queue;
        if (partno)
index 6438c75cbb358ff63735cda1e23214ef0a6a5c4f..5616d059cb23aa9e6ba4196cb46e3121bd0c863b 100644 (file)
@@ -50,7 +50,6 @@ struct block_device {
        bool                    bd_write_holder;
        bool                    bd_has_submit_bio;
        dev_t                   bd_dev;
-       struct inode            *bd_inode;      /* will die */
        struct address_space    *bd_mapping;    /* page cache */
 
        atomic_t                bd_openers;