aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/swap.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h
index db3b5de7c92f..3c9ff0048153 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -121,7 +121,7 @@ enum {
121 */ 121 */
122struct swap_info_struct { 122struct swap_info_struct {
123 unsigned int flags; 123 unsigned int flags;
124 spinlock_t sdev_lock; 124 int prio; /* swap priority */
125 struct file *swap_file; 125 struct file *swap_file;
126 struct block_device *bdev; 126 struct block_device *bdev;
127 struct list_head extent_list; 127 struct list_head extent_list;
@@ -135,7 +135,6 @@ struct swap_info_struct {
135 unsigned int pages; 135 unsigned int pages;
136 unsigned int max; 136 unsigned int max;
137 unsigned int inuse_pages; 137 unsigned int inuse_pages;
138 int prio; /* swap priority */
139 int next; /* next entry on swap list */ 138 int next; /* next entry on swap list */
140}; 139};
141 140
@@ -221,13 +220,7 @@ extern int can_share_swap_page(struct page *);
221extern int remove_exclusive_swap_page(struct page *); 220extern int remove_exclusive_swap_page(struct page *);
222struct backing_dev_info; 221struct backing_dev_info;
223 222
224extern struct swap_list_t swap_list; 223extern spinlock_t swap_lock;
225extern spinlock_t swaplock;
226
227#define swap_list_lock() spin_lock(&swaplock)
228#define swap_list_unlock() spin_unlock(&swaplock)
229#define swap_device_lock(p) spin_lock(&p->sdev_lock)
230#define swap_device_unlock(p) spin_unlock(&p->sdev_lock)
231 224
232/* linux/mm/thrash.c */ 225/* linux/mm/thrash.c */
233extern struct mm_struct * swap_token_mm; 226extern struct mm_struct * swap_token_mm;