summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2002-02-21 20:32:48 +0100
committerIngo Molnar <mingo@elte.hu>2002-02-21 20:32:48 +0100
commitb585ca3ef9bff4621ee9371d5fd9ed833666d359 (patch)
treed73c013ee29a4719d187e055e6b5ec16ad64ae35 /include
parent6d22c10f784087b9c980448d6e8af0b175bad2e4 (diff)
- make i_mmap and i_mmap_shared a list.h list
- make vma->vm_next_share and vma->vm_pprev_share a proper list.h list as well.
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h4
-rw-r--r--include/linux/mm.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 1411debc77dc..7bb0610ba3a6 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -377,8 +377,8 @@ struct address_space {
unsigned long nrpages; /* number of total pages */
struct address_space_operations *a_ops; /* methods */
struct inode *host; /* owner: inode, block_device */
- struct vm_area_struct *i_mmap; /* list of private mappings */
- struct vm_area_struct *i_mmap_shared; /* list of shared mappings */
+ list_t i_mmap; /* list of private mappings */
+ list_t i_mmap_shared; /* list of private mappings */
spinlock_t i_shared_lock; /* and spinlock protecting it */
int gfp_mask; /* how to allocate the pages */
};
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 6599c710fd37..d823fe4a9e56 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -61,8 +61,7 @@ struct vm_area_struct {
* one of the address_space->i_mmap{,shared} lists,
* for shm areas, the list of attaches, otherwise unused.
*/
- struct vm_area_struct *vm_next_share;
- struct vm_area_struct **vm_pprev_share;
+ list_t shared;
/* Function pointers to deal with this struct. */
struct vm_operations_struct * vm_ops;