diff options
author | Andi Kleen <andi@firstfloor.org> | 2009-12-16 06:19:57 -0500 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-12-16 06:19:57 -0500 |
commit | 82ba011b9041dd31c15e4f63797b08aa0a288e61 (patch) | |
tree | 7fd48d31ab507007c37f89a9dc41256b8585d8db /include/linux | |
parent | bd1ce5f91f545730df4af492f774d9d32f5da3cb (diff) |
HWPOISON: Turn ref argument into flags argument
Now that "ref" is just a boolean turn it into
a flags argument. First step is only a single flag
that makes the code's intention more clear, but more
may follow.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 68c84bb2ad3f..135e19198cd3 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1331,8 +1331,11 @@ extern int account_locked_memory(struct mm_struct *mm, struct rlimit *rlim, | |||
1331 | size_t size); | 1331 | size_t size); |
1332 | extern void refund_locked_memory(struct mm_struct *mm, size_t size); | 1332 | extern void refund_locked_memory(struct mm_struct *mm, size_t size); |
1333 | 1333 | ||
1334 | enum mf_flags { | ||
1335 | MF_COUNT_INCREASED = 1 << 0, | ||
1336 | }; | ||
1334 | extern void memory_failure(unsigned long pfn, int trapno); | 1337 | extern void memory_failure(unsigned long pfn, int trapno); |
1335 | extern int __memory_failure(unsigned long pfn, int trapno, int ref); | 1338 | extern int __memory_failure(unsigned long pfn, int trapno, int flags); |
1336 | extern int sysctl_memory_failure_early_kill; | 1339 | extern int sysctl_memory_failure_early_kill; |
1337 | extern int sysctl_memory_failure_recovery; | 1340 | extern int sysctl_memory_failure_recovery; |
1338 | extern void shake_page(struct page *p); | 1341 | extern void shake_page(struct page *p); |