summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-27 00:20:51 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-27 00:20:51 +0000
commit8fbc24c76fad6986c45dd92d2ca672037ab14bb9 (patch)
treefae614fcaa2dc6dac26c3d011acf74d35be81e5a
parentb711c2c03755e7d5d0a0fb1e5c3dafff66f00381 (diff)
(diskfs_pager_users/enable_cache): Fix typo.
Include <unistd.h>.
-rw-r--r--ufs/pager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ufs/pager.c b/ufs/pager.c
index 34c4d232..de5e1d18 100644
--- a/ufs/pager.c
+++ b/ufs/pager.c
@@ -18,6 +18,7 @@
#include "ufs.h"
#include <strings.h>
#include <stdio.h>
+#include <unistd.h>
spin_lock_t node2pagelock = SPIN_LOCK_INITIALIZER;
@@ -536,7 +537,7 @@ diskfs_pager_users ()
routine), and if that node has no links. So dinkle the node
ref counting scheme here, which will cause caching to be
turned off, if that's really necessary. */
- if (upi->pager_type == FILE_DATA)
+ if (upi->type == FILE_DATA)
{
diskfs_nref (upi->np);
diskfs_nrele (upi->np);
@@ -552,7 +553,7 @@ diskfs_pager_users ()
if (MAY_CACHE == 0)
{
ports_enable_bucket (pager_bucket);
- return 1
+ return 1;
}
/* Loop through the pagers and turn off caching one by one,