diff options
-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; |