summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-09-05 22:12:59 +0000
committerMiles Bader <miles@gnu.org>1995-09-05 22:12:59 +0000
commit8cf9bbd397009902b9cb385bd2065a1450c0c925 (patch)
tree445c9709bf3754e4e170720a1cf14b9696922908 /ext2fs
parent256e0d6c3339fe234d856e8445841b6152ffe028 (diff)
(diskfs_pager_users): Ignore the disk pager when seeing if there are any
active pagers. (diskfs_shutdown_pager): shutdown_one gets passed a pager, not a upi. (diskfs_sync_everything): sync_one gets passed a pager, not a upi.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/pager.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/ext2fs/pager.c b/ext2fs/pager.c
index 8869c652..15d915f4 100644
--- a/ext2fs/pager.c
+++ b/ext2fs/pager.c
@@ -754,9 +754,9 @@ diskfs_shutdown_pager ()
{
error_t shutdown_one (void *v_p)
{
- struct user_pager_info *p = v_p;
- if (p != disk_pager)
- pager_shutdown (p->p);
+ struct pager *p = v_p;
+ if (p != disk_pager->p)
+ pager_shutdown (p);
return 0;
}
@@ -777,9 +777,9 @@ diskfs_sync_everything (int wait)
{
error_t sync_one (void *v_p)
{
- struct user_pager_info *p = v_p;
- if (p != disk_pager)
- pager_sync (p->p, wait);
+ struct pager *p = v_p;
+ if (p != disk_pager->p)
+ pager_sync (p, wait);
return 0;
}
@@ -830,7 +830,7 @@ diskfs_pager_users ()
}
npagers = ports_count_bucket (pager_bucket);
- if (npagers == 0)
+ if (npagers <= 1)
return 0;
if (MAY_CACHE == 0)
@@ -848,8 +848,7 @@ diskfs_pager_users ()
sleep (1);
npagers = ports_count_bucket (pager_bucket);
-
- if (npagers == 0)
+ if (npagers <= 1)
return 0;
/* Darn, there are actual honest users. Turn caching back on,