summaryrefslogtreecommitdiff
path: root/ufs/sizes.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-10-19 20:23:12 +0000
committerMiles Bader <miles@gnu.org>1995-10-19 20:23:12 +0000
commite58710bde05d456347c85b2a27281262b5ad040b (patch)
tree65bdd0768a2739dda4b4ce70be72b6a7f9888cf2 /ufs/sizes.c
parent71955f28ace790b6349954e0cd3300ba6a4e623a (diff)
(diskfs_lookup, diskfs_dirempty): Give diskfs_get_filemap a protection arg.
Diffstat (limited to 'ufs/sizes.c')
-rw-r--r--ufs/sizes.c4
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);