diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-03 18:10:58 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-03 18:10:58 +0000 |
commit | 5b5ce16377e326e151bc0327601100931332d987 (patch) | |
tree | eec634b6144d4134a7cce1946e970f55d184ee84 /ufs | |
parent | d913b97b8b118e0dd081c1d780bdf7cf67429575 (diff) |
fixup
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/sizes.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c index ad14f5cc..af765945 100644 --- a/ufs/sizes.c +++ b/ufs/sizes.c @@ -383,9 +383,6 @@ block_extended (struct node *np, size_t old_size, size_t new_size) { - vm_address_t buf; - daddr_t off; - /* Make sure that any pages of this block which just became allocated don't get paged in from disk. */ if (round_page (old_size) < round_page (new_size)) @@ -394,7 +391,7 @@ block_extended (struct node *np, if (old_pbn != new_pbn) { - vm_object_t mapobj; + memory_object_t mapobj; error_t err; vm_address_t mapaddr; volatile int *pokeaddr; @@ -413,12 +410,12 @@ block_extended (struct node *np, spin_unlock (&unlocked_pagein_lock); /* Make sure all waiting pageins see this change. */ - mutex_lock (&np->allocptrlock->master); - condition_broadcast (&np->allocptrlock->wakeup); - mutex_unlock (&np->allocptrlock->master); + mutex_lock (&np->dn->allocptrlock->master); + condition_broadcast (&np->dn->allocptrlock->wakeup); + mutex_unlock (&np->dn->allocptrlock->master); /* Force the pages in core and make sure they are dirty */ - for (pokeaddr = (char *)mapaddr; + for (pokeaddr = (int *)mapaddr; pokeaddr < mapaddr + round_page (old_size); pokeaddr += vm_page_size / sizeof (*pokeaddr)) *pokeaddr = *pokeaddr; @@ -431,7 +428,7 @@ block_extended (struct node *np, /* Undo mapping */ mach_port_deallocate (mach_task_self (), mapobj); - vm_deallocate (mach_task_self (), mapaddr, round_page (old_size); + vm_deallocate (mach_task_self (), mapaddr, round_page (old_size)); /* Now it's OK to free the old block */ ffs_blkfree (np, old_pbn, old_size); @@ -456,7 +453,7 @@ diskfs_grow (struct node *np, error_t err; struct dinode *di = dino (np->dn->number); mach_port_t pagerpt; - int needsync = 0; + int need_sync = 0; /* Zero an sblock->fs_bsize piece of disk starting at BNO, synchronously. We do this on newly allocated indirect |