]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit3467a23e0091f0e358895eaa3ae78fca5125733e
tree48b165c8934a0f3852344725fee060740dcdfa48
parentf8ade62ef61aab78ae90d8d6095da6b57a0d76a3
[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