On Fri, Feb 15, 2019 at 01:41:15AM +0300, Kirill A. Shutemov wrote: > - __delete_from_swap_cache() will blow up on > > VM_BUG_ON_PAGE(entry != page + i, entry); Right. @@ -167,7 +167,7 @@ void __delete_from_swap_cache(struct page *page, swp_entry_t entry) for (i = 0; i < nr; i++) { void *entry = xas_store(&xas, NULL); - VM_BUG_ON_PAGE(entry != page + i, entry); + VM_BUG_ON_PAGE(entry != page, entry); set_page_private(page + i, 0); xas_next(&xas); }