From fddfc9d5bb4c35d88417fa80a062219876186593 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 26 Aug 1997 07:32:51 +0000 Subject: Uncut&paste cache_lookup(). This unifies several times in theory indentical 50 lines of code. The filesystems have a new method: vop_cachedlookup, which is the meat of the lookup, and use vfs_cache_lookup() for their vop_lookup method. vfs_cache_lookup() will check the namecache and pass on to the vop_cachedlookup method in case of a miss. It's still the task of the individual filesystems to populate the namecache with cache_enter(). Filesystems that do not use the namecache will just provide the vop_lookup method as usual. --- sys/msdosfs/denode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/msdosfs/denode.h') diff --git a/sys/msdosfs/denode.h b/sys/msdosfs/denode.h index a03c802..335e4d0 100644 --- a/sys/msdosfs/denode.h +++ b/sys/msdosfs/denode.h @@ -1,4 +1,4 @@ -/* $Id: denode.h,v 1.11 1997/02/22 09:40:44 peter Exp $ */ +/* $Id: denode.h,v 1.12 1997/02/26 14:23:09 bde Exp $ */ /* $NetBSD: denode.h,v 1.8 1994/08/21 18:43:49 ws Exp $ */ /*- @@ -226,7 +226,7 @@ struct defid { extern vop_t **msdosfs_vnodeop_p; -int msdosfs_lookup __P((struct vop_lookup_args *)); +int msdosfs_lookup __P((struct vop_cachedlookup_args *)); int msdosfs_inactive __P((struct vop_inactive_args *)); int msdosfs_reclaim __P((struct vop_reclaim_args *)); -- cgit v1.1