lkml.org 
[lkml]   [1998]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patches in this message
/
Date
From
Subjectshm_unuse and CONFIG_SYSVIPC
Albert Cranford has pointed out that shm_unuse() got not compiled if
CONFIG_SYSVIPC is not #defined.

Patch against 2.1.119:

--- linux/mm/swapfile.c~ Fri Aug 28 21:19:54 1998
+++ linux/mm/swapfile.c Sat Aug 29 20:31:55 1998
@@ -326,7 +326,9 @@
for_each_task(p)
unuse_process(p->mm, entry, page);
read_unlock(&tasklist_lock);
+#ifdef CONFIG_SYSVIPC
shm_unuse(entry, page);
+#endif
/* Now get rid of the extra reference to the temporary
page we've been using. */
if (PageSwapCache(page_map))



This for 2.0.35 on the top of the last one.

--- linux/mm/swapfile.c~ Sat Aug 29 20:36:07 1998
+++ linux/mm/swapfile.c Sat Aug 29 20:36:13 1998
@@ -314,7 +314,9 @@
nr++;
}
free_page(page);
+#ifdef CONFIG_SYSVIPC
shm_unuse(type);
+#endif
return 0;
}

Thanks, Albert.

Andrea[s] Arcangeli


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

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