Commit 9011495c authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

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: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent fe4ec12e
...@@ -832,7 +832,6 @@ dcssblk_open(struct block_device *bdev, fmode_t mode) ...@@ -832,7 +832,6 @@ dcssblk_open(struct block_device *bdev, fmode_t mode)
goto out; goto out;
} }
atomic_inc(&dev_info->use_count); atomic_inc(&dev_info->use_count);
bdev->bd_block_size = 4096;
rc = 0; rc = 0;
out: out:
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment