diff options
author | Miles Bader <miles@gnu.org> | 1995-10-19 20:23:12 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-10-19 20:23:12 +0000 |
commit | e58710bde05d456347c85b2a27281262b5ad040b (patch) | |
tree | 65bdd0768a2739dda4b4ce70be72b6a7f9888cf2 /ufs/sizes.c | |
parent | 71955f28ace790b6349954e0cd3300ba6a4e623a (diff) |
(diskfs_lookup, diskfs_dirempty): Give diskfs_get_filemap a protection arg.
Diffstat (limited to 'ufs/sizes.c')
-rw-r--r-- | ufs/sizes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c index f4f81393..0dadac28 100644 --- a/ufs/sizes.c +++ b/ufs/sizes.c @@ -101,7 +101,7 @@ diskfs_truncate (struct node *np, pager_change_attributes (upi->p, MAY_CACHE, MEMORY_OBJECT_COPY_NONE, 1); - obj = diskfs_get_filemap (np); + obj = diskfs_get_filemap (np, VM_PROT_READ | VM_PROT_WRITE); poke_pages (obj, round_page (length), round_page (np->allocsize)); mach_port_deallocate (mach_task_self (), obj); pager_flush_some (upi->p, round_page (length), @@ -588,7 +588,7 @@ diskfs_grow (struct node *np, { mach_port_t obj; - obj = diskfs_get_filemap (np); + obj = diskfs_get_filemap (np, VM_PROT_READ | VM_PROT_WRITE); poke_pages (obj, trunc_page (poke_off), round_page (poke_off + poke_len)); mach_port_deallocate (mach_task_self (), obj); |