diff options
author | Mateusz Guzik <[email protected]> | 2020-09-25 22:23:43 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-25 13:23:43 -0700 |
commit | f6bb7c029cabba405ff7072bfefa1dee55ccf0b4 (patch) | |
tree | 5d9cab8ce9a13c6ae5d1db8b6fb75180e89d2e3d | |
parent | fa1912e80fa75d5ec25ae8a8cac1296104c9b13c (diff) |
FreeBSD: update cache_purgevfs usage after 1300117 version bump
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Nick Wolff <[email protected]>
Signed-off-by: Mateusz Guzik <[email protected]>
Closes #10970
-rw-r--r-- | module/os/freebsd/zfs/zfs_vfsops.c | 4 |
1 files changed, 4 insertions, 0 deletions
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,8 +1532,12 @@ 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 } /* |