shm_unuse and CONFIG_SYSVIPC

Andrea Arcangeli (arcangeli@mbox.queen.it)
Sat, 29 Aug 1998 20:40:28 +0200 (CEST)


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