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

Side by Side Diff: include/linux/mm.h

Issue 4128001: CHROMIUM: vmscan: add min_filelist_kbytes sysctl for protecting the working set (Closed) Base URL: http://git.chromium.org/git/kernel.git
Patch Set: Handle cgroup case. Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | kernel/sysctl.c » ('j') | 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/gfp.h> 8 #include <linux/gfp.h>
9 #include <linux/list.h> 9 #include <linux/list.h>
10 #include <linux/mmzone.h> 10 #include <linux/mmzone.h>
(...skipping 17 matching lines...) Expand all
28 extern unsigned long totalram_pages; 28 extern unsigned long totalram_pages;
29 extern void * high_memory; 29 extern void * high_memory;
30 extern int page_cluster; 30 extern int page_cluster;
31 31
32 #ifdef CONFIG_SYSCTL 32 #ifdef CONFIG_SYSCTL
33 extern int sysctl_legacy_va_layout; 33 extern int sysctl_legacy_va_layout;
34 #else 34 #else
35 #define sysctl_legacy_va_layout 0 35 #define sysctl_legacy_va_layout 0
36 #endif 36 #endif
37 37
38 extern int min_filelist_kbytes;
39
38 #include <asm/page.h> 40 #include <asm/page.h>
39 #include <asm/pgtable.h> 41 #include <asm/pgtable.h>
40 #include <asm/processor.h> 42 #include <asm/processor.h>
41 43
42 #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n)) 44 #define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
43 45
44 /* to align the pointer to the (next) page boundary */ 46 /* to align the pointer to the (next) page boundary */
45 #define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE) 47 #define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
46 48
47 /* 49 /*
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 extern void refund_locked_memory(struct mm_struct *mm, size_t size); 1333 extern void refund_locked_memory(struct mm_struct *mm, size_t size);
1332 1334
1333 extern void memory_failure(unsigned long pfn, int trapno); 1335 extern void memory_failure(unsigned long pfn, int trapno);
1334 extern int __memory_failure(unsigned long pfn, int trapno, int ref); 1336 extern int __memory_failure(unsigned long pfn, int trapno, int ref);
1335 extern int sysctl_memory_failure_early_kill; 1337 extern int sysctl_memory_failure_early_kill;
1336 extern int sysctl_memory_failure_recovery; 1338 extern int sysctl_memory_failure_recovery;
1337 extern atomic_long_t mce_bad_pages; 1339 extern atomic_long_t mce_bad_pages;
1338 1340
1339 #endif /* __KERNEL__ */ 1341 #endif /* __KERNEL__ */
1340 #endif /* _LINUX_MM_H */ 1342 #endif /* _LINUX_MM_H */
OLDNEW
« no previous file with comments | « no previous file | kernel/sysctl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698