Added David Mills' kernel NTP PLL code. The current version of NTP does
[unix-history] / sys / kern / vfs_cache.c
index d24de73..71f03c7 100644 (file)
@@ -30,7 +30,8 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
  * 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"
  */
 
 #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.
  */
  * 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;
 {
 cache_lookup(ndp)
        register struct nameidata *ndp;
 {
@@ -188,6 +190,7 @@ cache_lookup(ndp)
 /*
  * Add an entry to the cache
  */
 /*
  * Add an entry to the cache
  */
+void
 cache_enter(ndp)
        register struct nameidata *ndp;
 {
 cache_enter(ndp)
        register struct nameidata *ndp;
 {
@@ -239,6 +242,7 @@ cache_enter(ndp)
 /*
  * Name cache initialization, from vfs_init() when we are booting
  */
 /*
  * Name cache initialization, from vfs_init() when we are booting
  */
+void
 nchinit()
 {
        register union nchash *nchp;
 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
  */
  * 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;
 {
 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?
  */
  * 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;
 {
 cache_purgevfs(mp)
        struct mount *mp;
 {