diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-10-03 19:06:29 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-10-03 19:06:29 +0000 |
commit | cf572a4fa65f0015434f51f95bf61831df007d30 (patch) | |
tree | ec9fab541039e997d974ccdf6dd752a576b1ed39 | |
parent | 588abe541e6e06d9a9605bfa62212d4beed476d4 (diff) |
Formerly pokeloc.c.~2~
-rw-r--r-- | ufs/pokeloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ufs/pokeloc.c b/ufs/pokeloc.c index bf3c9add..cc1f364c 100644 --- a/ufs/pokeloc.c +++ b/ufs/pokeloc.c @@ -32,9 +32,12 @@ spin_lock_t pokelistlock = SPIN_LOCK_INITIAILIZER; /* Remember that data here on the disk has been modified. */ void -record_poke (vm_offset_t offset, vm_size_t length) +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; |