From: Hugh Dickins Date: Tue, 6 Jan 2009 22:39:47 +0000 (-0800) Subject: swapfile: swapon needs larger size type X-Git-Tag: v2.6.29-rc1~434 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73fd8748ab0b9b3ddd178bea1d7ae03372033d96;p=pandora-kernel.git swapfile: swapon needs larger size type sys_swapon()'s swapfilesize (better renamed swapfilepages) is declared as an int, but should be an unsigned long like the maxpages it's compared against: on 64-bit (with 4kB pages) a swapfile of 2^44 bytes was rejected with "Swap area shorter than signature indicates". Signed-off-by: Hugh Dickins Cc: KAMEZAWA Hiroyuki Cc: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed