]> git.hungrycats.org Git - linux/commitdiff
[PATCH] swapout fix
authorAndrew Morton <akpm@digeo.com>
Thu, 19 Sep 2002 15:36:39 +0000 (08:36 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 19 Sep 2002 15:36:39 +0000 (08:36 -0700)
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.

mm/vmscan.c

index 91d66383509ef1a5bf3aec056c0fcf1f8928d150..def7ba08008738688117d218346a4fccd73af8ae 100644 (file)
@@ -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;
                }
 
                /*