Skip to content

Commit 9011495

Browse files
Christoph Hellwigaxboe
authored andcommitted
dcssblk: don't set bd_block_size in ->open
bd_block_size contains a value that matches the logic block size when opening, so the statement is redundant. Even if it wasn't the dumb assignment would cause a a mismatch with bd_inode->i_blkbits. Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent fe4ec12 commit 9011495

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/s390/block/dcssblk.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,6 @@ dcssblk_open(struct block_device *bdev, fmode_t mode)
832832
goto out;
833833
}
834834
atomic_inc(&dev_info->use_count);
835-
bdev->bd_block_size = 4096;
836835
rc = 0;
837836
out:
838837
return rc;

0 commit comments

Comments
 (0)