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

Commit b406a4dc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm: do not activate swap write failed pages"

parents a43b9839 4d704c30
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -582,18 +582,6 @@ 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) && PageSwapCache(page)) {
				ClearPageError(page);
				/*
				 * We lock the page here because it is required
				 * to free the swp space later in
				 * shrink_page_list. But the page may be
				 * unclocked by functions like
				 * handle_write_error.
				 */
				__set_page_locked(page);
				return PAGE_ACTIVATE;
			}
		}
		trace_mm_vmscan_writepage(page, trace_reclaim_flags(page));
		inc_zone_page_state(page, NR_VMSCAN_WRITE);