Re: [PATCH v2 10/10] mm: remove SWAP_[SUCCESS|AGAIN|FAIL]

From: Sergey Senozhatsky
Date: Thu Mar 16 2017 - 00:40:44 EST


Hello,


On (03/15/17 14:24), Minchan Kim wrote:
> There is no user for it. Remove it.
>

there is one.

mm/rmap.c

try_to_unmap_one()
...
if (unlikely(PageSwapBacked(page) != PageSwapCache(page))) {
WARN_ON_ONCE(1);
ret = SWAP_FAIL;
page_vma_mapped_walk_done(&pvmw);
break;
}

-ss