summaryrefslogtreecommitdiff
path: root/ufs/sizes.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-09-13 06:35:11 +0000
committerRoland McGrath <roland@gnu.org>1999-09-13 06:35:11 +0000
commit2a061ebb71bf7a93d5e7ed71fa13dd7005745965 (patch)
treec03dbbcdb1ab820ed98049bf3ad866ca4125ae2c /ufs/sizes.c
parentd5192f3ae0bc49683b16882e47d1bc39607d5363 (diff)
Reverted changes related to io_map_segment.
Diffstat (limited to 'ufs/sizes.c')
-rw-r--r--ufs/sizes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c
index cffce158..58cbfc98 100644
--- a/ufs/sizes.c
+++ b/ufs/sizes.c
@@ -103,7 +103,7 @@ diskfs_truncate (struct node *np,
pager_change_attributes (upi->p, MAY_CACHE,
MEMORY_OBJECT_COPY_NONE, 1);
- obj = diskfs_get_filemap (np, 0, VM_PROT_READ | VM_PROT_WRITE);
+ obj = diskfs_get_filemap (np, VM_PROT_READ | VM_PROT_WRITE);
if (obj != MACH_PORT_NULL)
{
/* XXX should cope with errors from diskfs_get_filemap */
@@ -403,7 +403,7 @@ block_extended (struct node *np,
volatile int *pokeaddr;
/* Map in this part of the file */
- mapobj = diskfs_get_filemap (np, 0, VM_PROT_WRITE | VM_PROT_READ);
+ mapobj = diskfs_get_filemap (np, VM_PROT_WRITE | VM_PROT_READ);
/* XXX Should cope with errors from diskfs_get_filemap and back
out the operation here. */
@@ -484,7 +484,7 @@ diskfs_grow (struct node *np,
assert (!diskfs_readonly);
/* This reference will ensure that NP->dn->fileinfo stays allocated. */
- pagerpt = diskfs_get_filemap (np, 0, VM_PROT_WRITE|VM_PROT_READ);
+ pagerpt = diskfs_get_filemap (np, VM_PROT_WRITE|VM_PROT_READ);
if (pagerpt == MACH_PORT_NULL)
return errno;