From cf572a4fa65f0015434f51f95bf61831df007d30 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 3 Oct 1994 19:06:29 +0000 Subject: Formerly pokeloc.c.~2~ --- ufs/pokeloc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ufs') 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; -- cgit v1.2.3