diff options
-rw-r--r-- | include/linux/mm.h | 6 | ||||
-rw-r--r-- | include/linux/mm_types.h | 2 | ||||
-rw-r--r-- | mm/memory.c | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 3899395a03de..7f693b272c4a 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -971,7 +971,13 @@ static inline void setmax_mm_hiwater_rss(unsigned long *maxrss, | |||
971 | *maxrss = hiwater_rss; | 971 | *maxrss = hiwater_rss; |
972 | } | 972 | } |
973 | 973 | ||
974 | #if defined(SPLIT_RSS_COUNTING) | ||
974 | void sync_mm_rss(struct task_struct *task, struct mm_struct *mm); | 975 | void sync_mm_rss(struct task_struct *task, struct mm_struct *mm); |
976 | #else | ||
977 | static inline void sync_mm_rss(struct task_struct *task, struct mm_struct *mm) | ||
978 | { | ||
979 | } | ||
980 | #endif | ||
975 | 981 | ||
976 | /* | 982 | /* |
977 | * A callback you can register to apply pressure to ageable caches. | 983 | * A callback you can register to apply pressure to ageable caches. |
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 048b46270aa5..b8bb9a6a1f37 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h | |||
@@ -203,7 +203,7 @@ enum { | |||
203 | NR_MM_COUNTERS | 203 | NR_MM_COUNTERS |
204 | }; | 204 | }; |
205 | 205 | ||
206 | #if USE_SPLIT_PTLOCKS | 206 | #if USE_SPLIT_PTLOCKS && defined(CONFIG_MMU) |
207 | #define SPLIT_RSS_COUNTING | 207 | #define SPLIT_RSS_COUNTING |
208 | struct mm_rss_stat { | 208 | struct mm_rss_stat { |
209 | atomic_long_t count[NR_MM_COUNTERS]; | 209 | atomic_long_t count[NR_MM_COUNTERS]; |
diff --git a/mm/memory.c b/mm/memory.c index d1153e37e9ba..3d9130bd95d0 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -190,9 +190,6 @@ static void check_sync_rss_stat(struct task_struct *task) | |||
190 | { | 190 | { |
191 | } | 191 | } |
192 | 192 | ||
193 | void sync_mm_rss(struct task_struct *task, struct mm_struct *mm) | ||
194 | { | ||
195 | } | ||
196 | #endif | 193 | #endif |
197 | 194 | ||
198 | /* | 195 | /* |