Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187116
b: refs/heads/master
c: 53bddb4
h: refs/heads/master
v: v3
  • Loading branch information
KAMEZAWA Hiroyuki authored and Linus Torvalds committed Mar 12, 2010
1 parent 18f76f8 commit 9cd96d8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 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: 936ed49a540e2dce645da27e7e4032b24310a8e4
refs/heads/master: 53bddb4e9f3f53df02a783751984ddeade71b085
6 changes: 6 additions & 0 deletions trunk/include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,13 @@ static inline void setmax_mm_hiwater_rss(unsigned long *maxrss,
*maxrss = hiwater_rss;
}

#if defined(SPLIT_RSS_COUNTING)
void sync_mm_rss(struct task_struct *task, struct mm_struct *mm);
#else
static inline void sync_mm_rss(struct task_struct *task, struct mm_struct *mm)
{
}
#endif

/*
* A callback you can register to apply pressure to ageable caches.
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/mm_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ enum {
NR_MM_COUNTERS
};

#if USE_SPLIT_PTLOCKS
#if USE_SPLIT_PTLOCKS && defined(CONFIG_MMU)
#define SPLIT_RSS_COUNTING
struct mm_rss_stat {
atomic_long_t count[NR_MM_COUNTERS];
Expand Down
3 changes: 0 additions & 3 deletions trunk/mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,6 @@ static void check_sync_rss_stat(struct task_struct *task)
{
}

void sync_mm_rss(struct task_struct *task, struct mm_struct *mm)
{
}
#endif

/*
Expand Down

0 comments on commit 9cd96d8

Please sign in to comment.