Commit 56677816 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix: writing to the swap space

Ah.  That's some left-over code.  Reads will be OK, but writes will be
unexpectedly asynchronous.  Nothing in the kernel uses that function for
writes so it didn't show up.
parent 4c6871db
......@@ -117,9 +117,6 @@ void rw_swap_page_nolock(int rw, swp_entry_t entry, char *buf)
page->mapping = &swapper_space;
if (!rw_swap_page_base(rw, entry, page))
unlock_page(page);
if (rw == WRITE)
wait_on_page_writeback(page);
else
wait_on_page_locked(page);
wait_on_page_locked(page);
page->mapping = NULL;
}
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