[PATCH] fix swap cluster offset
authorAkinobu Mita <mita@miraclelinux.com>
Wed, 22 Mar 2006 08:09:09 +0000 (00:09 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:54:06 +0000 (07:54 -0800)
commit9b65ef59d42a56fa1358958ede77aaa5bac385a8
treec6f83951e399cf52784f6d200c9588e4c41d6461
parent879336c3930ae9273ea1c45214cb8adae0ce494a
[PATCH] fix swap cluster offset

When we've allocated SWAPFILE_CLUSTER pages, ->cluster_next should be the
first index of swap cluster.  But current code probably sets it wrong offset.

Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/swapfile.c