Commit 62a29ea1 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] swapout fix

Silly bug which was halving swapout bandwidth: we've taken a copy of
page->mapping into a local convenience variable, but forgot to update
that local after adding the page to swapcache.
parent da1eca60
......@@ -145,6 +145,7 @@ shrink_list(struct list_head *page_list, int nr_pages,
if (!add_to_swap(page))
goto activate_locked;
pte_chain_lock(page);
mapping = page->mapping;
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment