Skip to content
Commit 449aad3e authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.de>
parent 64bd660b
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