Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: include/linux/mm.h

Issue 801393003: task_mmu: Reduce excessive indentation in clear_refs_write Base URL: https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git@master
Patch Set: Second patch Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fs/proc/task_mmu.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/linux/mm.h
diff --git a/include/linux/mm.h b/include/linux/mm.h
index c0a67b894c4ce5338e845774b3c4e3ad8c325f5f..f3f6ceeb06a1c7248a77111fe0a3539fb4ea3c62 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1368,6 +1368,11 @@ static inline void update_hiwater_vm(struct mm_struct *mm)
mm->hiwater_vm = mm->total_vm;
}
+static inline void reset_mm_hiwater_rss(struct mm_struct *mm)
+{
+ mm->hiwater_rss = get_mm_rss(mm);
+}
+
static inline void setmax_mm_hiwater_rss(unsigned long *maxrss,
struct mm_struct *mm)
{
« no previous file with comments | « fs/proc/task_mmu.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698