diff options
| author | Hugh Dickins <hugh@veritas.com> | 2004-08-23 21:25:09 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-23 21:25:09 -0700 |
| commit | 7dbb1d674cffcd849cd76116144aeff45a5f3f39 (patch) | |
| tree | 86e1589b61284ec04a4ed7898840db17ce304cf3 /fs | |
| parent | c524e494f651156938ff2d76f22ad17231b77e20 (diff) | |
[PATCH] clarify get_task_mm (mmgrab)
Clarify mmgrab by collapsing it into get_task_mm (in fork.c not inline),
and commenting on the special case it is guarding against: when use_mm in
an AIO daemon temporarily adopts the mm while it's on its way out.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/proc/array.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 995080fd88d2..d41a679d1362 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -316,11 +316,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer) state = *get_task_state(task); vsize = eip = esp = 0; - task_lock(task); - mm = task->mm; - if(mm) - mm = mmgrab(mm); - task_unlock(task); + mm = get_task_mm(task); if (mm) { down_read(&mm->mmap_sem); vsize = task_vsize(mm); |
