The quilt patch titled Subject: MM: handle THP in swap_*page_fs() - count_vm_events() has been removed from the -mm tree. Its filename was mm-handle-thp-in-swap_page_fs-count_vm_events.patch This patch was dropped because it was merged into mm-stable ------------------------------------------------------ From: "NeilBrown" <neilb@xxxxxxx> Subject: MM: handle THP in swap_*page_fs() - count_vm_events() We need to use count_swpout_vm_event() for sio_write_complete() to get correct counting. Note that THP swap in (if it ever happens) is current accounted 1 for each page, whether HUGE or normal. This is different from swap-out accounting. This patch should be squashed into MM: handle THP in swap_*page_fs() Link: https://lkml.kernel.org/r/165146948934.24404.5909750610552745025@xxxxxxxxxxxxxxxxxxxxx Signed-off-by: NeilBrown <neilb@xxxxxxx> Reported-by: Miaohe Lin <linmiaohe@xxxxxxxxxx> Reviewed-by: Miaohe Lin <linmiaohe@xxxxxxxxxx> Cc: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> Cc: Christoph Hellwig <hch@xxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Cc: Yang Shi <shy828301@xxxxxxxxx> Cc: Huang Ying <ying.huang@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_io.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/mm/page_io.c~mm-handle-thp-in-swap_page_fs-count_vm_events +++ a/mm/page_io.c @@ -280,8 +280,10 @@ static void sio_write_complete(struct ki set_page_dirty(page); ClearPageReclaim(page); } - } else - count_vm_events(PSWPOUT, sio->pages); + } else { + for (p = 0; p < sio->pages; p++) + count_swpout_vm_event(sio->bvec[p].bv_page); + } for (p = 0; p < sio->pages; p++) end_page_writeback(sio->bvec[p].bv_page); _ Patches currently in -mm which might be from neilb@xxxxxxx are mm-discard-__gfp_atomic.patch