The patch titled swapfile: fix wrong return value has been removed from the -mm tree. Its filename was swapfile-fix-the-wrong-return-value.patch This patch was dropped because it was nacked The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: swapfile: fix wrong return value From: Huang Shijie <shijie8@xxxxxxxxx> If __swap_duplicate() returns a negative value except of the -ENOMEM, but the err is zero at this time, the return value of swap_duplicate() is wrong in this situation. The callers such as try_to_unmap_one(), will do the wrong operation in this situation. Signed-off-by: Huang Shijie <shijie8@xxxxxxxxx> Cc: Hugh Dickins <hugh.dickins@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/swapfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/swapfile.c~swapfile-fix-the-wrong-return-value mm/swapfile.c --- a/mm/swapfile.c~swapfile-fix-the-wrong-return-value +++ a/mm/swapfile.c @@ -2170,7 +2170,7 @@ int swap_duplicate(swp_entry_t entry) { int err = 0; - while (!err && __swap_duplicate(entry, 1) == -ENOMEM) + while (!err && (err = __swap_duplicate(entry, 1)) == -ENOMEM) err = add_swap_count_continuation(entry, GFP_ATOMIC); return err; } _ Patches currently in -mm which might be from shijie8@xxxxxxxxx are origin.patch linux-next.patch mm-restore-zone-all_unreclaimable-to-independence-word.patch mm-restore-zone-all_unreclaimable-to-independence-word-fix.patch mm-restore-zone-all_unreclaimable-to-independence-word-fix-2.patch swapfile-fix-the-wrong-return-value.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html