Mercurial > illumos > illumos-gate
diff usr/src/uts/common/fs/zfs/zfs_vfsops.c @ 1484:d330e98f8ed7
6350001 ZFS lookup performance still much slower than UFS : help tar : help spec SFS
6383405 ARC needs to purge some DNLC entries when memory is low
author | ek110237 |
---|---|
date | Fri, 24 Feb 2006 10:48:56 -0800 |
parents | 1a70f57b62f0 |
children | 196daa2cf3db |
line wrap: on
line diff
--- a/usr/src/uts/common/fs/zfs/zfs_vfsops.c Fri Feb 24 10:45:20 2006 -0800 +++ b/usr/src/uts/common/fs/zfs/zfs_vfsops.c Fri Feb 24 10:48:56 2006 -0800 @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -54,6 +53,7 @@ #include <sys/zfs_ioctl.h> #include <sys/zfs_ctldir.h> #include <sys/sunddi.h> +#include <sys/dnlc.h> int zfsfstype; vfsops_t *zfs_vfsops = NULL; @@ -702,6 +702,9 @@ if ((ret = secpolicy_fs_unmount(cr, vfsp)) != 0) return (ret); + + (void) dnlc_purge_vfsp(vfsp, 0); + /* * Unmount any snapshots mounted under .zfs before unmounting the * dataset itself.