summaryrefslogtreecommitdiff
path: root/ext2fs/pager.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-09-08 08:39:10 +0000
committerThomas Bushnell <thomas@gnu.org>1999-09-08 08:39:10 +0000
commit60aeeb0099a6595f023845f5f7ec8f5a12f73c9e (patch)
tree2b6f46283ac7eae7b0347f1a73a43a789f639db7 /ext2fs/pager.c
parent4ad1c1f75bf97ce7888b99f6850b41f9f5789ec8 (diff)
1999-09-07 Thomas Bushnell, BSG <tb@mit.edu>
* dir.c (diskfs_lookup_hard): Pass additional parameter to diskfs_get_filemap. (diskfs_dirempty): Likewise. * truncate.c (force_delayed_copies): Likewise. * pager.c (diskfs_get_filemap): Accept additional parameter.
Diffstat (limited to 'ext2fs/pager.c')
-rw-r--r--ext2fs/pager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext2fs/pager.c b/ext2fs/pager.c
index 8981390e..270bbd9a 100644
--- a/ext2fs/pager.c
+++ b/ext2fs/pager.c
@@ -777,10 +777,12 @@ create_disk_pager (void)
/* Call this to create a FILE_DATA pager and return a send right.
NODE must be locked. */
mach_port_t
-diskfs_get_filemap (struct node *node, vm_prot_t prot)
+diskfs_get_filemap (struct node *node, int index, vm_prot_t prot)
{
mach_port_t right;
+ assert (index == 0); /* XXX */
+
assert (S_ISDIR (node->dn_stat.st_mode)
|| S_ISREG (node->dn_stat.st_mode)
|| (S_ISLNK (node->dn_stat.st_mode)));