[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH block/for-next v2 05/16] s390/dasd: use new helper to get inode from block_device



From: Yu Kuai <yukuai3@xxxxxxxxxx>

Which is more efficiency, and also prepare to remove the field
'bd_inode' from block_device.

Signed-off-by: Yu Kuai <yukuai3@xxxxxxxxxx>
---
 drivers/s390/block/dasd_ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/s390/block/dasd_ioctl.c b/drivers/s390/block/dasd_ioctl.c
index 61b9675e2a67..a34554ace310 100644
--- a/drivers/s390/block/dasd_ioctl.c
+++ b/drivers/s390/block/dasd_ioctl.c
@@ -221,7 +221,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 =
+               bdev_inode(block->gdp->part0)->i_blkbits =
                        blksize_bits(fdata->blksize);
        }
 
-- 
2.39.2




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.