lkml.org 
[lkml]   [2003]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] swap 05/13 page_convert_anon unlocking
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.075 / U:1.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site