X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/15637ed4f028f1b013a54c226bcb3c75228ad20d..9e85cc83789df962ae7bcfb4b8af4f36f4555be5:/sys/kern/vfs_cache.c diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index d24de73e63..71f03c731a 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -30,7 +30,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)vfs_cache.c 7.8 (Berkeley) 2/28/91 + * from: @(#)vfs_cache.c 7.8 (Berkeley) 2/28/91 + * $Id: vfs_cache.c,v 1.2 1993/10/16 15:25:19 rgrimes Exp $ */ #include "param.h" @@ -91,6 +92,7 @@ int doingcache = 1; /* 1 => enable the cache */ * the name does not exist (negative cacheing), a status of ENOENT * is returned. If the lookup fails, a status of zero is returned. */ +int cache_lookup(ndp) register struct nameidata *ndp; { @@ -188,6 +190,7 @@ cache_lookup(ndp) /* * Add an entry to the cache */ +void cache_enter(ndp) register struct nameidata *ndp; { @@ -239,6 +242,7 @@ cache_enter(ndp) /* * Name cache initialization, from vfs_init() when we are booting */ +void nchinit() { register union nchash *nchp; @@ -263,6 +267,7 @@ nchinit() * Cache flush, a particular vnode; called when a vnode is renamed to * hide entries that would now be invalid */ +void cache_purge(vp) struct vnode *vp; { @@ -290,6 +295,7 @@ cache_purge(vp) * if the cache lru chain is modified while we are dumping the * inode. This makes the algorithm O(n^2), but do you think I care? */ +void cache_purgevfs(mp) struct mount *mp; {