aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 4c0c01afc19b..a512dd836931 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -57,6 +57,15 @@ extern int sysctl_legacy_va_layout;
57extern unsigned long sysctl_user_reserve_kbytes; 57extern unsigned long sysctl_user_reserve_kbytes;
58extern unsigned long sysctl_admin_reserve_kbytes; 58extern unsigned long sysctl_admin_reserve_kbytes;
59 59
60extern int sysctl_overcommit_memory;
61extern int sysctl_overcommit_ratio;
62extern unsigned long sysctl_overcommit_kbytes;
63
64extern int overcommit_ratio_handler(struct ctl_table *, int, void __user *,
65 size_t *, loff_t *);
66extern int overcommit_kbytes_handler(struct ctl_table *, int, void __user *,
67 size_t *, loff_t *);
68
60#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n)) 69#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
61 70
62/* to align the pointer to the (next) page boundary */ 71/* to align the pointer to the (next) page boundary */