From 7a4a38fa09a886e1d25711a866e391fdc4fb3269 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 12 Jul 2005 15:29:22 +0000 Subject: ext2fs/ fatfs/ 2005-07-12 Marcus Brinkmann * pager.c (diskfs_get_filemap): Initialize upi->max_prot to PROT. --- ext2fs/ChangeLog | 4 ++++ ext2fs/pager.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'ext2fs') 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 + + * pager.c (diskfs_get_filemap): Initialize upi->max_prot to PROT. + 2004-11-08 Ognyan Kulev * 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, -- cgit v1.2.3