summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2005-07-12 15:29:22 +0000
committerMarcus Brinkmann <marcus@gnu.org>2005-07-12 15:29:22 +0000
commit7a4a38fa09a886e1d25711a866e391fdc4fb3269 (patch)
tree2b9c6d74a59d234c5829e4a02aed8ce4759d318d /ext2fs
parent0eee7f9af6d6cba106bea55a0370ef85e1a900fa (diff)
ext2fs/
fatfs/ 2005-07-12 Marcus Brinkmann <marcus@gnu.org> * pager.c (diskfs_get_filemap): Initialize upi->max_prot to PROT.
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/ChangeLog4
-rw-r--r--ext2fs/pager.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ext2fs/ChangeLog b/ext2fs/ChangeLog
index 5594aaf2..b6fe57b9 100644
--- a/ext2fs/ChangeLog
+++ b/ext2fs/ChangeLog
@@ -1,3 +1,7 @@
+2005-07-12 Marcus Brinkmann <marcus@gnu.org>
+
+ * pager.c (diskfs_get_filemap): Initialize upi->max_prot to PROT.
+
2004-11-08 Ognyan Kulev <ogi@fmi.uni-sofia.bg>
* storeinfo.c (diskfs_S_file_get_storage_info): Cast -1 to
diff --git a/ext2fs/pager.c b/ext2fs/pager.c
index f8e16d46..3f4674b4 100644
--- a/ext2fs/pager.c
+++ b/ext2fs/pager.c
@@ -811,7 +811,7 @@ diskfs_get_filemap (struct node *node, vm_prot_t prot)
malloc (sizeof (struct user_pager_info));
upi->type = FILE_DATA;
upi->node = node;
- upi->max_prot = 0;
+ upi->max_prot = prot;
diskfs_nref_light (node);
node->dn->pager =
pager_create (upi, pager_bucket, MAY_CACHE,