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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « fs/proc/task_mmu.c ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef _LINUX_MM_H 1 #ifndef _LINUX_MM_H
2 #define _LINUX_MM_H 2 #define _LINUX_MM_H
3 3
4 #include <linux/errno.h> 4 #include <linux/errno.h>
5 5
6 #ifdef __KERNEL__ 6 #ifdef __KERNEL__
7 7
8 #include <linux/mmdebug.h> 8 #include <linux/mmdebug.h>
9 #include <linux/gfp.h> 9 #include <linux/gfp.h>
10 #include <linux/bug.h> 10 #include <linux/bug.h>
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 if ((mm)->hiwater_rss < _rss) 1361 if ((mm)->hiwater_rss < _rss)
1362 (mm)->hiwater_rss = _rss; 1362 (mm)->hiwater_rss = _rss;
1363 } 1363 }
1364 1364
1365 static inline void update_hiwater_vm(struct mm_struct *mm) 1365 static inline void update_hiwater_vm(struct mm_struct *mm)
1366 { 1366 {
1367 if (mm->hiwater_vm < mm->total_vm) 1367 if (mm->hiwater_vm < mm->total_vm)
1368 mm->hiwater_vm = mm->total_vm; 1368 mm->hiwater_vm = mm->total_vm;
1369 } 1369 }
1370 1370
1371 static inline void reset_mm_hiwater_rss(struct mm_struct *mm)
1372 {
1373 mm->hiwater_rss = get_mm_rss(mm);
1374 }
1375
1371 static inline void setmax_mm_hiwater_rss(unsigned long *maxrss, 1376 static inline void setmax_mm_hiwater_rss(unsigned long *maxrss,
1372 struct mm_struct *mm) 1377 struct mm_struct *mm)
1373 { 1378 {
1374 unsigned long hiwater_rss = get_mm_hiwater_rss(mm); 1379 unsigned long hiwater_rss = get_mm_hiwater_rss(mm);
1375 1380
1376 if (*maxrss < hiwater_rss) 1381 if (*maxrss < hiwater_rss)
1377 *maxrss = hiwater_rss; 1382 *maxrss = hiwater_rss;
1378 } 1383 }
1379 1384
1380 #if defined(SPLIT_RSS_COUNTING) 1385 #if defined(SPLIT_RSS_COUNTING)
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
2205 #endif /* CONFIG_DEBUG_PAGEALLOC */ 2210 #endif /* CONFIG_DEBUG_PAGEALLOC */
2206 2211
2207 #if MAX_NUMNODES > 1 2212 #if MAX_NUMNODES > 1
2208 void __init setup_nr_node_ids(void); 2213 void __init setup_nr_node_ids(void);
2209 #else 2214 #else
2210 static inline void setup_nr_node_ids(void) {} 2215 static inline void setup_nr_node_ids(void) {}
2211 #endif 2216 #endif
2212 2217
2213 #endif /* __KERNEL__ */ 2218 #endif /* __KERNEL__ */
2214 #endif /* _LINUX_MM_H */ 2219 #endif /* _LINUX_MM_H */
OLDNEW
« 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