From b37efb872b6d829995bbabc8ba1260d400916c0c Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Fri, 25 Sep 2020 22:23:43 +0200 Subject: [PATCH] FreeBSD: update cache_purgevfs usage after 1300117 version bump Reviewed-by: Ryan Moeller Reviewed-by: Nick Wolff Signed-off-by: Mateusz Guzik Closes #10970 --- module/os/freebsd/zfs/zfs_vfsops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/os/freebsd/zfs/zfs_vfsops.c b/module/os/freebsd/zfs/zfs_vfsops.c index 77812ca8d..ec8303283 100644 --- a/module/os/freebsd/zfs/zfs_vfsops.c +++ b/module/os/freebsd/zfs/zfs_vfsops.c @@ -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 }