]> git.baikalelectronics.ru Git - kernel.git/commit
mm, counters: remove task argument to sync_mm_rss() and __sync_task_rss_stat()
authorDavid Rientjes <rientjes@google.com>
Wed, 21 Mar 2012 23:34:13 +0000 (16:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 22 Mar 2012 00:54:59 +0000 (17:54 -0700)
commita6af6eb9647bfa87588b52a6456e98d47a3f6927
treecdd5876f2d17b26cc3ded7ef85d04d0e853e9b7e
parent755bd7b4e80d78c09f71566df57bc9782c33d5e2
mm, counters: remove task argument to sync_mm_rss() and __sync_task_rss_stat()

sync_mm_rss() can only be used for current to avoid race conditions in
iterating and clearing its per-task counters.  Remove the task argument
for it and its helper function, __sync_task_rss_stat(), to avoid thinking
it can be used safely for anything other than current.

Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c
include/linux/mm.h
kernel/exit.c
mm/memory.c
mm/mmu_context.c