mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Linux 5.10 compat: revalidate_disk_size() added
A new function was added named revalidate_disk_size() and the old revalidate_disk() appears to have been deprecated. As the only ZFS code that calls this function is zvol_update_volsize, swapping the old function call out for the new one should be all that is required. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Coleman Kane <ckane@colemankane.org> Closes #11085
This commit is contained in:
committed by
Brian Behlendorf
parent
e767b1cacc
commit
a30fed54f4
@@ -657,7 +657,11 @@ static int
|
||||
zvol_update_volsize(zvol_state_t *zv, uint64_t volsize)
|
||||
{
|
||||
|
||||
#ifdef HAVE_REVALIDATE_DISK_SIZE
|
||||
revalidate_disk_size(zv->zv_zso->zvo_disk, false);
|
||||
#else
|
||||
revalidate_disk(zv->zv_zso->zvo_disk);
|
||||
#endif
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user