summaryrefslogtreecommitdiffstats
path: root/sys/fs/pseudofs/pseudofs_vncache.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2007-04-15 17:10:01 +0000
committerdes <des@FreeBSD.org>2007-04-15 17:10:01 +0000
commit4632956a5bf1f7d4c362f825a0d8a41d7373cbcc (patch)
tree05ac576c137319455e47d6351423e8622e85afbd /sys/fs/pseudofs/pseudofs_vncache.c
parent29fb9c20c7495c66cd3e3e4286f23665f9316d59 (diff)
downloadFreeBSD-src-4632956a5bf1f7d4c362f825a0d8a41d7373cbcc.zip
FreeBSD-src-4632956a5bf1f7d4c362f825a0d8a41d7373cbcc.tar.gz
Make pseudofs (and consequently procfs, linprocfs and linsysfs) MPSAFE.
Diffstat (limited to 'sys/fs/pseudofs/pseudofs_vncache.c')
-rw-r--r--sys/fs/pseudofs/pseudofs_vncache.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vncache.c b/sys/fs/pseudofs/pseudofs_vncache.c
index 7544cb1..1310013 100644
--- a/sys/fs/pseudofs/pseudofs_vncache.c
+++ b/sys/fs/pseudofs/pseudofs_vncache.c
@@ -235,7 +235,7 @@ pfs_vncache_free(struct vnode *vp)
}
/*
- * Purge the cache of dead / disabled entries
+ * Purge the cache of dead entries
*
* This is extremely inefficient due to the fact that vgone() not only
* indirectly modifies the vnode cache, but may also sleep. We can
@@ -298,26 +298,3 @@ pfs_exit(void *arg, struct proc *p)
pfs_purge(NULL);
mtx_unlock(&Giant);
}
-
-/*
- * Disable a pseudofs node, and free all vnodes associated with it
- */
-int
-pfs_disable(struct pfs_node *pn)
-{
- if (pn->pn_flags & PFS_DISABLED)
- return (0);
- pn->pn_flags |= PFS_DISABLED;
- pfs_purge(pn);
- return (0);
-}
-
-/*
- * Re-enable a disabled pseudofs node
- */
-int
-pfs_enable(struct pfs_node *pn)
-{
- pn->pn_flags &= ~PFS_DISABLED;
- return (0);
-}
OpenPOWER on IntegriCloud