summaryrefslogtreecommitdiff
path: root/ufs/sizes.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-09-08 08:41:59 +0000
committerThomas Bushnell <thomas@gnu.org>1999-09-08 08:41:59 +0000
commit6c70c6d345509bf6690b4443ba36974d2c6a147b (patch)
tree293e1398b308669c59d4c0ea77f1223eadd84db3 /ufs/sizes.c
parentacaedfea96345110b420a9ad66accef684fe45c4 (diff)
1999-09-08 Thomas Bushnell, BSG <tb@mit.edu>
* dir.c (diskfs_get_directs): Initialize `err' to shut gcc up. 1999-09-07 Thomas Bushnell, BSG <tb@mit.edu> * dir.c (diskfs_lookup_hard): Pass additional parameter to diskfs_get_filemap. (diskfs_dirempty): Likewise. * sizes.c (diskfs_truncate): Likewise. (block_extended): Likewise. (diskfs_grow): Likewise. * pager.c (diskfs_get_filemap): Accept additional parameter.
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 58cbfc98..cffce158 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, VM_PROT_READ | VM_PROT_WRITE);
+ obj = diskfs_get_filemap (np, 0, 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, VM_PROT_WRITE | VM_PROT_READ);
+ mapobj = diskfs_get_filemap (np, 0, 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, VM_PROT_WRITE|VM_PROT_READ);
+ pagerpt = diskfs_get_filemap (np, 0, VM_PROT_WRITE|VM_PROT_READ);
if (pagerpt == MACH_PORT_NULL)
return errno;