aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/mm.h3
-rw-r--r--include/linux/sched.h10
2 files changed, 10 insertions, 3 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index da42093250c3..7d4552fe0864 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -938,9 +938,6 @@ static inline void vm_stat_account(struct mm_struct *mm,
938} 938}
939#endif /* CONFIG_PROC_FS */ 939#endif /* CONFIG_PROC_FS */
940 940
941/* update per process rss and vm hiwater data */
942extern void update_mem_hiwater(struct task_struct *tsk);
943
944#ifndef CONFIG_DEBUG_PAGEALLOC 941#ifndef CONFIG_DEBUG_PAGEALLOC
945static inline void 942static inline void
946kernel_map_pages(struct page *page, int numpages, int enable) 943kernel_map_pages(struct page *page, int numpages, int enable)
diff --git a/include/linux/sched.h b/include/linux/sched.h
index afcaac66cbd5..a9c0b7d26303 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -256,6 +256,16 @@ extern void arch_unmap_area_topdown(struct mm_struct *, unsigned long);
256#define dec_mm_counter(mm, member) (mm)->_##member-- 256#define dec_mm_counter(mm, member) (mm)->_##member--
257#define get_mm_rss(mm) ((mm)->_file_rss + (mm)->_anon_rss) 257#define get_mm_rss(mm) ((mm)->_file_rss + (mm)->_anon_rss)
258 258
259#define update_hiwater_rss(mm) do { \
260 unsigned long _rss = get_mm_rss(mm); \
261 if ((mm)->hiwater_rss < _rss) \
262 (mm)->hiwater_rss = _rss; \
263} while (0)
264#define update_hiwater_vm(mm) do { \
265 if ((mm)->hiwater_vm < (mm)->total_vm) \
266 (mm)->hiwater_vm = (mm)->total_vm; \
267} while (0)
268
259typedef unsigned long mm_counter_t; 269typedef unsigned long mm_counter_t;
260 270
261struct mm_struct { 271struct mm_struct {