diff options
Diffstat (limited to 'mm/zswap.c')
-rw-r--r-- | mm/zswap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/zswap.c b/mm/zswap.c index d93510c6aa2d..001474c1a594 100644 --- a/mm/zswap.c +++ b/mm/zswap.c | |||
@@ -556,6 +556,9 @@ static int zswap_writeback_entry(struct zbud_pool *pool, unsigned long handle) | |||
556 | SetPageUptodate(page); | 556 | SetPageUptodate(page); |
557 | } | 557 | } |
558 | 558 | ||
559 | /* move it to the tail of the inactive list after end_writeback */ | ||
560 | SetPageReclaim(page); | ||
561 | |||
559 | /* start writeback */ | 562 | /* start writeback */ |
560 | __swap_writepage(page, &wbc, end_swap_bio_write); | 563 | __swap_writepage(page, &wbc, end_swap_bio_write); |
561 | page_cache_release(page); | 564 | page_cache_release(page); |