diff options
author | Benjamin Herrenschmidt | 2006-03-01 01:59:19 +0100 |
---|---|---|
committer | Linus Torvalds | 2006-03-01 05:53:44 +0100 |
commit | 0551fbd29e16fccd46e41b7d01bf0f8f39b14212 (patch) | |
tree | 760783df743eec940d6f6cb848498580ddde03d8 /include/linux/sched.h | |
parent | [PATCH] nommu: implement vmalloc_node() (diff) | |
download | kernel-qcow2-linux-0551fbd29e16fccd46e41b7d01bf0f8f39b14212.tar.gz kernel-qcow2-linux-0551fbd29e16fccd46e41b7d01bf0f8f39b14212.tar.xz kernel-qcow2-linux-0551fbd29e16fccd46e41b7d01bf0f8f39b14212.zip |
[PATCH] Add mm->task_size and fix powerpc vdso
This patch adds mm->task_size to keep track of the task size of a given mm
and uses that to fix the powerpc vdso so that it uses the mm task size to
decide what pages to fault in instead of the current thread flags (which
broke when ptracing).
(akpm: I expect that mm_struct.task_size will become the way in which we
finally sort out the confusion between 32-bit processes and 32-bit mm's. It
may need tweaks, but at this stage this patch is powerpc-only.)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index b6f51e3a38ec..ff2e09c953b9 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -298,8 +298,9 @@ struct mm_struct { unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags); void (*unmap_area) (struct mm_struct *mm, unsigned long addr); - unsigned long mmap_base; /* base of mmap area */ - unsigned long cached_hole_size; /* if non-zero, the largest hole below free_area_cache */ + unsigned long mmap_base; /* base of mmap area */ + unsigned long task_size; /* size of task vm space */ + unsigned long cached_hole_size; /* if non-zero, the largest hole below free_area_cache */ unsigned long free_area_cache; /* first hole of size cached_hole_size or larger */ pgd_t * pgd; atomic_t mm_users; /* How many users with user space? */ |