diff options
Diffstat (limited to 'module/os/linux/zfs/zvol_os.c')
-rw-r--r-- | module/os/linux/zfs/zvol_os.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/os/linux/zfs/zvol_os.c b/module/os/linux/zfs/zvol_os.c index 0cd2d415c..5ffac706c 100644 --- a/module/os/linux/zfs/zvol_os.c +++ b/module/os/linux/zfs/zvol_os.c @@ -656,7 +656,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); } |