diff options
-rw-r--r-- | fs/block_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 82b7c9ad29ac..2f7058421ffb 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -1119,7 +1119,7 @@ static int __blkdev_get(struct block_device *bdev, fmode_t mode, int for_part) | |||
1119 | } | 1119 | } |
1120 | } | 1120 | } |
1121 | 1121 | ||
1122 | if (!ret && !bdev->bd_openers) { | 1122 | if (!ret) { |
1123 | bd_set_size(bdev,(loff_t)get_capacity(disk)<<9); | 1123 | bd_set_size(bdev,(loff_t)get_capacity(disk)<<9); |
1124 | bdi = blk_get_backing_dev_info(bdev); | 1124 | bdi = blk_get_backing_dev_info(bdev); |
1125 | if (bdi == NULL) | 1125 | if (bdi == NULL) |