diff options
author | Andrew Patterson <andrew.patterson@hp.com> | 2008-09-04 16:27:25 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-10-09 02:56:12 -0400 |
commit | c3279d1454cdfed02a557d789d8a6d08ab4cbe70 (patch) | |
tree | 2591c7c0886f9b6b63aa40e3ef3caa984370c38b /include | |
parent | 0c002c2f74e10baa9021d3ecc50585c6eafea568 (diff) |
Adjust block device size after an online resize of a disk.
The revalidate_disk routine now checks if a disk has been resized by
comparing the gendisk capacity to the bdev inode size. If they are
different (usually because the disk has been resized underneath the kernel)
the bdev inode size is adjusted to match the capacity.
Signed-off-by: Andrew Patterson <andrew.patterson@hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index d63461f97983..32477e8872d5 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1722,6 +1722,8 @@ extern int fs_may_remount_ro(struct super_block *); | |||
1722 | */ | 1722 | */ |
1723 | #define bio_data_dir(bio) ((bio)->bi_rw & 1) | 1723 | #define bio_data_dir(bio) ((bio)->bi_rw & 1) |
1724 | 1724 | ||
1725 | extern void check_disk_size_change(struct gendisk *disk, | ||
1726 | struct block_device *bdev); | ||
1725 | extern int revalidate_disk(struct gendisk *); | 1727 | extern int revalidate_disk(struct gendisk *); |
1726 | extern int check_disk_change(struct block_device *); | 1728 | extern int check_disk_change(struct block_device *); |
1727 | extern int __invalidate_device(struct block_device *); | 1729 | extern int __invalidate_device(struct block_device *); |