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>
This commit is contained in:
parent
90481622d7
commit
05af2e104a
5 changed files with 14 additions and 14 deletions
|
@ -1131,9 +1131,9 @@ static inline void setmax_mm_hiwater_rss(unsigned long *maxrss,
|
|||
}
|
||||
|
||||
#if defined(SPLIT_RSS_COUNTING)
|
||||
void sync_mm_rss(struct task_struct *task, struct mm_struct *mm);
|
||||
void sync_mm_rss(struct mm_struct *mm);
|
||||
#else
|
||||
static inline void sync_mm_rss(struct task_struct *task, struct mm_struct *mm)
|
||||
static inline void sync_mm_rss(struct mm_struct *mm)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue