[PATCH] swap: swap unsigned int consistency
authorHugh Dickins <hugh@veritas.com>
Sat, 3 Sep 2005 22:54:35 +0000 (15:54 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:05:41 +0000 (00:05 -0700)
commit6eb396dc4a9781c5e7951143ab56ce5710687ab3
tree48b165c8934a0f3852344725fee060740dcdfa48
parent53092a7402f227151a681b0c92ec8598c5618b1a
[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>
include/linux/swap.h
mm/swapfile.c