summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,