[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120319160401.GD4910@redhat.com>
Date: Mon, 19 Mar 2012 17:04:01 +0100
From: Oleg Nesterov <oleg@...hat.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Alan Cox <alan@...rguk.ukuu.org.uk>,
Al Viro <viro@...iv.linux.org.uk>,
Alexey Dobriyan <adobriyan@...il.com>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
James Morris <james.l.morris@...cle.com>,
Greg KH <gregkh@...uxfoundation.org>,
Ingo Molnar <mingo@...e.hu>,
Roland McGrath <roland@...k.frob.com>,
Solar Designer <solar@...nwall.com>,
Djalal Harouni <tixxdz@...ndz.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] exec: move de_thread()->setmax_mm_hiwater_rss() into
exec_mmap()
Minor cleanup. de_thread()->setmax_mm_hiwater_rss() looks a bit
strange, move it into exec_mmap() which plays with old_mm.
Signed-off-by: Oleg Nesterov <oleg@...hat.com>
---
fs/exec.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/fs/exec.c b/fs/exec.c
index 218d074..7f84e86 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -848,6 +848,7 @@ static int exec_mmap(struct mm_struct *mm)
if (old_mm) {
up_read(&old_mm->mmap_sem);
BUG_ON(active_mm != old_mm);
+ setmax_mm_hiwater_rss(&tsk->signal->maxrss, old_mm);
mm_update_next_owner(old_mm);
mmput(old_mm);
return 0;
@@ -978,9 +979,6 @@ no_thread_group:
/* we have changed execution domain */
tsk->exit_signal = SIGCHLD;
- if (current->mm)
- setmax_mm_hiwater_rss(&sig->maxrss, current->mm);
-
exit_itimers(sig);
flush_itimer_signals();
--
1.5.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists