diff options
author | Roland McGrath <roland@gnu.org> | 1996-01-06 16:52:06 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-01-06 16:52:06 +0000 |
commit | a231ec59f294d46022fa92c6155602987eca2ede (patch) | |
tree | a25a5a23eb5f42f5346dcd4cc72380bfb0751d6e /ufs/pokeloc.c | |
parent | 8f13155dc955b8546aad0f4cf8d1d71e360727b4 (diff) |
(sync_disk): Use `disk_pager' in place of `diskpager->p'.
Diffstat (limited to 'ufs/pokeloc.c')
-rw-r--r-- | ufs/pokeloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ufs/pokeloc.c b/ufs/pokeloc.c index e137090f..d09942e8 100644 --- a/ufs/pokeloc.c +++ b/ufs/pokeloc.c @@ -1,5 +1,5 @@ /* Remember where we've written the disk to speed up sync - Copyright (C) 1994 Free Software Foundation, Inc. + Copyright (C) 1994, 1996 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -20,7 +20,7 @@ #include "ufs.h" -struct pokeloc +struct pokeloc { vm_offset_t offset; vm_size_t length; @@ -36,7 +36,7 @@ record_poke (void *loc, vm_size_t length) { struct pokeloc *pl = malloc (sizeof (struct pokeloc)); vm_offset_t offset; - + offset = loc - disk_image; pl->offset = trunc_page (offset); pl->length = round_page (offset + length) - pl->offset; @@ -71,11 +71,11 @@ void sync_disk (int wait) { struct pokeloc *pl, *tmp; - + spin_lock (&pokelistlock); for (pl = pokelist; pl; pl = tmp) { - pager_sync_some (diskpager->p, pl->offset, pl->length, wait); + pager_sync_some (disk_pager, pl->offset, pl->length, wait); tmp = pl->next; free (pl); } |