summaryrefslogtreecommitdiff
path: root/fatfs
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 /fatfs
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 'fatfs')
-rw-r--r--fatfs/ChangeLog4
-rw-r--r--fatfs/pager.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/fatfs/ChangeLog b/fatfs/ChangeLog
index 73295084..d7d65a94 100644
--- a/fatfs/ChangeLog
+++ b/fatfs/ChangeLog
@@ -1,3 +1,7 @@
+2005-07-12 Marcus Brinkmann <marcus@gnu.org>
+
+ * pager.c (diskfs_get_filemap): Initialize upi->max_prot to PROT.
+
2003-08-09 Marcus Brinkmann <marcus@gnu.org>
* fat.h: Include <byteswap.h>.
diff --git a/fatfs/pager.c b/fatfs/pager.c
index ef5a945b..22adb089 100644
--- a/fatfs/pager.c
+++ b/fatfs/pager.c
@@ -790,7 +790,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,