From: Hugh Dickins Date: Fri, 29 Sep 2006 09:01:26 +0000 (-0700) Subject: [PATCH] valid_swaphandles() fix X-Git-Tag: v2.6.19-rc1~681 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f9e7949f86dfe2bd9a1ad0604f78e7683c059de;p=pandora-kernel.git [PATCH] valid_swaphandles() fix akpm draws my attention to the fact that sysctl(VM_PAGE_CLUSTER) might conceivably change page_cluster to 0 while valid_swaphandles() is in the middle of using it, leading to an embarrassingly long loop: take a local snapshot of page_cluster and work with that. Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed