]> git.proxmox.com Git - mirror_zfs.git/commitdiff
FreeBSD: update cache_purgevfs usage after 1300117 version bump
authorMateusz Guzik <mjguzik@gmail.com>
Fri, 25 Sep 2020 20:23:43 +0000 (22:23 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Sep 2020 20:23:43 +0000 (13:23 -0700)
Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org>
Reviewed-by: Nick Wolff <darkfiberiru@gmail.com>
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Closes #10970

module/os/freebsd/zfs/zfs_vfsops.c

index 77812ca8d400188c37dce41993b0ee63c16b74be..ec83032834146f668902ae7972108c94a2a8462f 100644 (file)
@@ -1532,7 +1532,11 @@ zfsvfs_teardown(zfsvfs_t *zfsvfs, boolean_t unmounting)
                 * 'z_parent' is self referential for non-snapshots.
                 */
 #ifdef FREEBSD_NAMECACHE
+#if __FreeBSD_version >= 1300117
+               cache_purgevfs(zfsvfs->z_parent->z_vfs);
+#else
                cache_purgevfs(zfsvfs->z_parent->z_vfs, true);
+#endif
 #endif
        }