From: Hugh Dickins Date: Sat, 3 Sep 2005 22:54:32 +0000 (-0700) Subject: [PATCH] swap: correct swapfile nr_good_pages X-Git-Tag: v2.6.14-rc1~988 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2244ec2efa4ee1edf391d0001d314933e2b2974;p=pandora-kernel.git [PATCH] swap: correct swapfile nr_good_pages If a regular swapfile lies on a filesystem whose blocksize is less than PAGE_SIZE, then setup_swap_extents may have to cut the number of usable swap pages; but sys_swapon's nr_good_pages was not expecting that. Also, setup_swap_extents takes no account of badpages listed in the swap header: not worth doing so, but ensure nr_badpages is 0 for a regular swapfile. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed