[PATCH] migration: remove unnecessary PageSwapCache checks
authorChristoph Lameter <clameter@sgi.com>
Fri, 23 Jun 2006 09:03:08 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:46 +0000 (07:42 -0700)
commit3c5a87f476bed45616e7e543dcaea4440c77bf93
tree0ff4c86ef594f7bfad9937095b69aab5e70b4174
parent4776874ff096cd410382c0eca5d75f69c9dfa58f
[PATCH] migration: remove unnecessary PageSwapCache checks

Remove two unnecessary PageSwapCache checks.  The page refcount is raised
and therefore page migration cannot occur in both functions.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/shmem.c
mm/swapfile.c