aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/block_dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 33650fc537c4..57e2786dd2a5 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -902,6 +902,7 @@ void check_disk_size_change(struct gendisk *disk, struct block_device *bdev)
902 "%s: detected capacity change from %lld to %lld\n", 902 "%s: detected capacity change from %lld to %lld\n",
903 name, bdev_size, disk_size); 903 name, bdev_size, disk_size);
904 i_size_write(bdev->bd_inode, disk_size); 904 i_size_write(bdev->bd_inode, disk_size);
905 flush_disk(bdev);
905 } 906 }
906} 907}
907EXPORT_SYMBOL(check_disk_size_change); 908EXPORT_SYMBOL(check_disk_size_change);