diff options
-rw-r--r-- | ext2fs/ChangeLog | 4 | ||||
-rw-r--r-- | ext2fs/pager.c | 2 | ||||
-rw-r--r-- | fatfs/ChangeLog | 4 | ||||
-rw-r--r-- | fatfs/pager.c | 2 |
4 files changed, 10 insertions, 2 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, 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, |