]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit28f0a75c370c213f5f8d1337a1e8cf9da97bf6e1
tree0ff4c86ef594f7bfad9937095b69aab5e70b4174
parent0c9f9703fa09ab92534799ca0f46ef81bd3b02ef
[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