dasd_format(): killing the last remaining user of ->bd_inode
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 29 Apr 2024 00:43:56 +0000 (20:43 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 3 May 2024 06:36:56 +0000 (02:36 -0400)
What happens here is almost certainly wrong.  However,
* it's the last remaining user of ->bd_inode anywhere in the tree
* it is *NOT* a fast path by any stretch of imagination

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/s390/block/dasd_ioctl.c

index 7e0ed7032f76a80ce3079d21537bbae6f5126455..eb5dcbe372301b0194b67ad17d515204541b0bfa 100644 (file)
@@ -215,7 +215,7 @@ dasd_format(struct dasd_block *block, struct format_data_t *fdata)
         * enabling the device later.
         */
        if (fdata->start_unit == 0) {
-               block->gdp->part0->bd_inode->i_blkbits =
+               block->gdp->part0->bd_mapping->host->i_blkbits =
                        blksize_bits(fdata->blksize);
        }