]> git.baikalelectronics.ru Git - kernel.git/commit
exit,stats: /* obey this comment */
authorRik van Riel <riel@redhat.com>
Thu, 25 Jun 2015 22:03:56 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jun 2015 00:00:43 +0000 (17:00 -0700)
commitfb0d35d1d4ded046bd7899d78f02e7eeded0689a
treeff6c486033265cf86d6b96059a745a82e3245a3b
parentf78cb171fd6ee28a1fbe4054557bfd3982eb6c49
exit,stats: /* obey this comment */

There is a helpful comment in do_exit() that states we sync the mm's RSS
info before statistics gathering.

The function that does the statistics gathering is called right above that
comment.

Change the code to obey the comment.

Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c