diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 13 | ||||
-rw-r--r-- | include/linux/swap.h | 1 |
2 files changed, 10 insertions, 4 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index eafe4a7b82..cad6a16260 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -344,9 +344,16 @@ struct mm_struct { | |||
344 | /* Architecture-specific MM context */ | 344 | /* Architecture-specific MM context */ |
345 | mm_context_t context; | 345 | mm_context_t context; |
346 | 346 | ||
347 | /* Token based thrashing protection. */ | 347 | /* Swap token stuff */ |
348 | unsigned long swap_token_time; | 348 | /* |
349 | char recent_pagein; | 349 | * Last value of global fault stamp as seen by this process. |
350 | * In other words, this value gives an indication of how long | ||
351 | * it has been since this task got the token. | ||
352 | * Look at mm/thrash.c | ||
353 | */ | ||
354 | unsigned int faultstamp; | ||
355 | unsigned int token_priority; | ||
356 | unsigned int last_interval; | ||
350 | 357 | ||
351 | /* coredumping support */ | 358 | /* coredumping support */ |
352 | int core_waiters; | 359 | int core_waiters; |
diff --git a/include/linux/swap.h b/include/linux/swap.h index e7c36ba2a2..89f8a39773 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -259,7 +259,6 @@ extern spinlock_t swap_lock; | |||
259 | 259 | ||
260 | /* linux/mm/thrash.c */ | 260 | /* linux/mm/thrash.c */ |
261 | extern struct mm_struct * swap_token_mm; | 261 | extern struct mm_struct * swap_token_mm; |
262 | extern unsigned long swap_token_default_timeout; | ||
263 | extern void grab_swap_token(void); | 262 | extern void grab_swap_token(void); |
264 | extern void __put_swap_token(struct mm_struct *); | 263 | extern void __put_swap_token(struct mm_struct *); |
265 | 264 | ||