Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 604601f7 authored by Olav Haugan's avatar Olav Haugan Committed by Matt Wagantall
Browse files

mm: vmscan: Move pages that fail swapout to LRU active list



Move pages that fail swapout to the LRU active list to reduce
pressure on swap device when swapping out is already failing.
This helps when using a pseudo swap device such as zram which
starts failing when memory is low.

Change-Id: Ib136cd0a744378aa93d837a24b9143ee818c80b3
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent 7eb94371
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -565,6 +565,8 @@ static pageout_t pageout(struct page *page, struct address_space *mapping,
		if (!PageWriteback(page)) {
			/* synchronous write or broken a_ops? */
			ClearPageReclaim(page);
			if (PageError(page))
				return PAGE_ACTIVATE;
		}
		trace_mm_vmscan_writepage(page, trace_reclaim_flags(page));
		inc_zone_page_state(page, NR_VMSCAN_WRITE);