[PATCH] swap 05/13 page_convert_anon unlocking

Hugh Dickins (hugh@veritas.com)
Tue, 25 Mar 2003 22:14:58 +0000 (GMT)


objrmap page_convert_anon was missing an unlock and an upsem.

--- swap04/mm/rmap.c Tue Mar 25 20:43:29 2003
+++ swap05/mm/rmap.c Tue Mar 25 20:43:40 2003
@@ -818,6 +818,7 @@
*/
if (mapcount < page->pte.mapcount) {
pte_chain_unlock(page);
+ up(&mapping->i_shared_sem);
goto retry;
} else if ((mapcount > page->pte.mapcount) && (mapcount > 1)) {
mapcount = page->pte.mapcount;
@@ -833,7 +834,7 @@
SetPageAnon(page);

if (mapcount == 0)
- goto out;
+ goto out_unlock;
else if (mapcount == 1) {
SetPageDirect(page);
page->pte.direct = 0;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/