Following commit changed the behavior to return 0 when no pages require migration. commit e78bbfa8262424417a29349a8064a535053912b9 Author: Brice Goglin Date: Sat Oct 18 20:27:15 2008 -0700 mm: stop returning -ENOENT from sys_move_pages() if nothing got migrated So testing for ENOENT in move_pages09, makes sense only for kernel < 2.6.28. Signed-off-by: Jan Stancek --- .../kernel/syscalls/move_pages/move_pages09.c | 29 +++++++++++++++----- 1 files changed, 22 insertions(+), 7 deletions(-)