summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-17 18:04:08 +0000
committerMiles Bader <miles@gnu.org>1995-04-17 18:04:08 +0000
commita4bc507ada0d75d08decd021c18baeaab35c7139 (patch)
treea1aaf100c132c1f72052622500f2b6f837cb3e34
parentd0e66947d2919139cb06297c39854a001fd78219 (diff)
Formerly pokel.c.~3~
-rw-r--r--ext2fs/pokel.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext2fs/pokel.c b/ext2fs/pokel.c
index 2aa455c0..8290727b 100644
--- a/ext2fs/pokel.c
+++ b/ext2fs/pokel.c
@@ -32,7 +32,7 @@ void pokel_init (struct pokel *pokel, struct pager *pager, void *image)
/* Remember that data here on the disk has been modified. */
void
-pokel_add (struct pokel, void *loc, vm_size_t length)
+pokel_add (struct pokel *pokel, void *loc, vm_size_t length)
{
struct poke *pl;
vm_offset_t offset;
@@ -57,12 +57,12 @@ pokel_add (struct pokel, void *loc, vm_size_t length)
pokel->pokes = pl;
}
- spin_lock (&pokelistlock);
+ spin_unlock (&pokel->lock);
}
/* Sync all the modified pieces of disk */
void
-pokel_sync (struct pokel *pokes, int wait)
+pokel_sync (struct pokel *pokel, int wait)
{
struct poke *pl, *next;
@@ -70,7 +70,7 @@ pokel_sync (struct pokel *pokes, int wait)
for (pl = pokel->pokes; pl; pl = next)
{
- pager_sync_some (pokel->pager->p, pl->offset, pl->length, wait);
+ pager_sync_some (pokel->pager, pl->offset, pl->length, wait);
next = pl->next;
pl->next = pokel->free_pokes;
pokel->free_pokes = pl;
@@ -79,4 +79,3 @@ pokel_sync (struct pokel *pokes, int wait)
spin_unlock (&pokel->lock);
}
-