diff options
Diffstat (limited to 'sys/fs/pseudofs/pseudofs_vncache.c')
-rw-r--r-- | sys/fs/pseudofs/pseudofs_vncache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vncache.c b/sys/fs/pseudofs/pseudofs_vncache.c index 62ba7e0..5f21d67 100644 --- a/sys/fs/pseudofs/pseudofs_vncache.c +++ b/sys/fs/pseudofs/pseudofs_vncache.c @@ -108,7 +108,7 @@ pfs_vncache_alloc(struct mount *mp, struct vnode **vpp, int error; /* - * See if the vnode is in the cache. + * See if the vnode is in the cache. * XXX linear search is not very efficient. */ mtx_lock(&pfs_vncache_mutex); @@ -183,7 +183,7 @@ pfs_vncache_free(struct vnode *vp) struct pfs_vdata *pvd; cache_purge(vp); - + mtx_lock(&pfs_vncache_mutex); pvd = (struct pfs_vdata *)vp->v_data; KASSERT(pvd != NULL, ("pfs_vncache_free(): no vnode data\n")); @@ -235,7 +235,7 @@ int pfs_disable(struct pfs_node *pn) { struct pfs_vdata *pvd, *prev; - + if (pn->pn_flags & PFS_DISABLED) return (0); mtx_lock(&pfs_vncache_mutex); |