Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292663
b: refs/heads/master
c: ea48cf7
h: refs/heads/master
i:
  292661: 403a65b
  292659: 3504684
  292655: b00db00
v: v3
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Mar 22, 2012
1 parent 7ef7e1d commit 751e1b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 05af2e104a0c282dcd9303431e1360750ba76de6
refs/heads/master: ea48cf7863c789579b170ef28e7fc62728365d6e
9 changes: 2 additions & 7 deletions trunk/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 751e1b6

Please sign in to comment.