Skip to content

Commit

Permalink
mm, counters: fold __sync_task_rss_stat() into sync_mm_rss()
Browse files Browse the repository at this point in the history
There's no difference between sync_mm_rss() and __sync_task_rss_stat(),
so fold the latter into the former.

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>
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Mar 22, 2012
1 parent 05af2e1 commit ea48cf7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ core_initcall(init_zero_pfn);

#if defined(SPLIT_RSS_COUNTING)

static void __sync_task_rss_stat(struct mm_struct *mm)
void sync_mm_rss(struct mm_struct *mm)
{
int i;

Expand Down Expand Up @@ -157,12 +157,7 @@ static void check_sync_rss_stat(struct task_struct *task)
if (unlikely(task != current))
return;
if (unlikely(task->rss_stat.events++ > TASK_RSS_EVENTS_THRESH))
__sync_task_rss_stat(task->mm);
}

void sync_mm_rss(struct mm_struct *mm)
{
__sync_task_rss_stat(mm);
sync_mm_rss(task->mm);
}
#else /* SPLIT_RSS_COUNTING */

Expand Down

0 comments on commit ea48cf7

Please sign in to comment.