diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 97b10da0a3ea..6448bbc6406b 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -426,6 +426,15 @@ static inline unsigned long get_mm_hiwater_rss(struct mm_struct *mm) | |||
426 | return max(mm->hiwater_rss, get_mm_rss(mm)); | 426 | return max(mm->hiwater_rss, get_mm_rss(mm)); |
427 | } | 427 | } |
428 | 428 | ||
429 | static inline void setmax_mm_hiwater_rss(unsigned long *maxrss, | ||
430 | struct mm_struct *mm) | ||
431 | { | ||
432 | unsigned long hiwater_rss = get_mm_hiwater_rss(mm); | ||
433 | |||
434 | if (*maxrss < hiwater_rss) | ||
435 | *maxrss = hiwater_rss; | ||
436 | } | ||
437 | |||
429 | static inline unsigned long get_mm_hiwater_vm(struct mm_struct *mm) | 438 | static inline unsigned long get_mm_hiwater_vm(struct mm_struct *mm) |
430 | { | 439 | { |
431 | return max(mm->hiwater_vm, mm->total_vm); | 440 | return max(mm->hiwater_vm, mm->total_vm); |
@@ -612,6 +621,7 @@ struct signal_struct { | |||
612 | unsigned long nvcsw, nivcsw, cnvcsw, cnivcsw; | 621 | unsigned long nvcsw, nivcsw, cnvcsw, cnivcsw; |
613 | unsigned long min_flt, maj_flt, cmin_flt, cmaj_flt; | 622 | unsigned long min_flt, maj_flt, cmin_flt, cmaj_flt; |
614 | unsigned long inblock, oublock, cinblock, coublock; | 623 | unsigned long inblock, oublock, cinblock, coublock; |
624 | unsigned long maxrss, cmaxrss; | ||
615 | struct task_io_accounting ioac; | 625 | struct task_io_accounting ioac; |
616 | 626 | ||
617 | /* | 627 | /* |