]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] valid_swaphandles() fix
authorHugh Dickins <hugh@veritas.com>
Fri, 29 Sep 2006 09:01:26 +0000 (02:01 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:23 +0000 (09:18 -0700)
commit28a6f4102b85e55a8f998f12c46ada77ea0716b7
treeaf710aa375e0f641ceec1bf7d4002ef33beeb571
parent5ae8cfc6e12d953950ec0e38cd458b942e245d97
[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 <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/swapfile.c