OLD | NEW |
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 Loading... |
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 Loading... |
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 */ |
OLD | NEW |