dasd_format(): killing the last remaining user of ->bd_inode

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>
This commit is contained in:
Al Viro 2024-04-28 20:43:56 -04:00
parent 3386183382
commit 463b3162c9

View 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);
}