]> git.baikalelectronics.ru Git - kernel.git/commit
md: Use revalidate_disk to effect changes in size of device.
authorNeilBrown <neilb@suse.de>
Mon, 3 Aug 2009 00:59:58 +0000 (10:59 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 3 Aug 2009 00:59:58 +0000 (10:59 +1000)
commit5e2b48073e4632bb9cebf444c84baa32d2dca9a3
tree45fab3b82fc1ed06959537a0801319045cf4c102
parentb5574681bfabe802d27940b4328452fdbb7c12ff
md: Use revalidate_disk to effect changes in size of device.

As revalidate_disk calls check_disk_size_change, it will cause
any capacity change of a gendisk to be propagated to the blockdev
inode.  So use that instead of mucking about with locks and
i_size_write.

Also add a call to revalidate_disk in do_md_run and a few other places
where the gendisk capacity is changed.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/linear.c
drivers/md/md.c
drivers/md/raid1.c
drivers/md/raid5.c