exec: move de_thread()->setmax_mm_hiwater_rss() into exec_mmap()
authorOleg Nesterov <oleg@redhat.com>
Mon, 19 Mar 2012 16:04:01 +0000 (17:04 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 Mar 2012 21:16:50 +0000 (14:16 -0700)
commit701085b219016d38f105b031381b9cee6200253a
tree5111f137c507c8537d5d2c8e4203f0e6e4942bcb
parentb6e238dceed36891cc633167afe7151f1f3d83c5
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@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c