diff --git a/mm/page_io.c b/mm/page_io.c index 8e0e5c0e7cdb71..eb3300fa89dc8b 100644 --- a/mm/page_io.c +++ b/mm/page_io.c @@ -231,6 +231,8 @@ int __swap_writepage(struct page *page, struct writeback_control *wbc, if (ret == PAGE_SIZE) { count_vm_event(PSWPOUT); ret = 0; + } else { + set_page_dirty(page); } return ret; }