diff options
author | Hugh Dickins <hugh@veritas.com> | 2005-09-03 18:54:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@evo.osdl.org> | 2005-09-05 03:05:41 -0400 |
commit | 6eb396dc4a9781c5e7951143ab56ce5710687ab3 (patch) | |
tree | 48b165c8934a0f3852344725fee060740dcdfa48 /include/linux/swap.h | |
parent | 53092a7402f227151a681b0c92ec8598c5618b1a (diff) |
[PATCH] swap: swap unsigned int consistency
The swap header's unsigned int last_page determines the range of swap pages,
but swap_info has been using int or unsigned long in some cases: use unsigned
int throughout (except, in several places a local unsigned long is useful to
avoid overflows when adding).
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/swap.h')
-rw-r--r-- | include/linux/swap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/swap.h b/include/linux/swap.h index f2b16ac0b539..93f0eca7f916 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h | |||
@@ -130,10 +130,10 @@ struct swap_info_struct { | |||
130 | unsigned int highest_bit; | 130 | unsigned int highest_bit; |
131 | unsigned int cluster_next; | 131 | unsigned int cluster_next; |
132 | unsigned int cluster_nr; | 132 | unsigned int cluster_nr; |
133 | unsigned int pages; | ||
134 | unsigned int max; | ||
135 | unsigned int inuse_pages; | ||
133 | int prio; /* swap priority */ | 136 | int prio; /* swap priority */ |
134 | int pages; | ||
135 | unsigned long max; | ||
136 | unsigned long inuse_pages; | ||
137 | int next; /* next entry on swap list */ | 137 | int next; /* next entry on swap list */ |
138 | }; | 138 | }; |
139 | 139 | ||