]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] page migration: Fail with error if swap not setup
authorChristoph Lameter <clameter@sgi.com>
Fri, 17 Mar 2006 07:03:59 +0000 (23:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 17 Mar 2006 15:51:25 +0000 (07:51 -0800)
commitb7d3d85bbe44baa416e1db04a3fad083bae65ebe
treede0f9275dcf8a051baf70df8574ce34b8b1f158d
parent53dfa0b8ff832f55095342b93c4de0ae83ea8c54
[PATCH] page migration: Fail with error if swap not setup

Currently the migration of anonymous pages will silently fail if no swap is
setup.  This patch makes page migration functions check for available swap
and fail with -ENODEV if no swap space is available.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/mempolicy.c