Commit 39beef0b authored by James Bottomley's avatar James Bottomley

revert fs/block_dev.c change for hot resize: breaks initrd

parent b4997f76
......@@ -573,8 +573,6 @@ static int do_open(struct block_device *bdev, struct inode *inode, struct file *
up(&whole->bd_sem);
}
} else {
if (!part)
bd_set_size(bdev,(loff_t)get_capacity(disk)<<9);
put_disk(disk);
module_put(owner);
if (bdev->bd_contains == bdev) {
......
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