diff options
author | Coleman Kane <[email protected]> | 2020-10-18 13:06:18 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-11-02 22:01:19 +0000 |
commit | 59b687232798a4da0e7647cca19a308aa82b5fad (patch) | |
tree | ec1d1b9fe333f9ac6c38686e4dfeb6c7ace39742 /module/os/linux/zfs | |
parent | ae15f1c1d88d85cc1af8152559d50a4baf5e50c5 (diff) |
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 <[email protected]>
Signed-off-by: Coleman Kane <[email protected]>
Closes #11085
Diffstat (limited to 'module/os/linux/zfs')
-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); } |