* [patch] rw_swap_page_nocache dead
@ 1999-08-18 17:23 Andrea Arcangeli
0 siblings, 0 replies; only message in thread
From: Andrea Arcangeli @ 1999-08-18 17:23 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel, linux-mm
rw_swap_page_nocache seems dead code to me. I can compile shm/swapfile.o
fine even without it.
diff -ur 2.3.14-pre1/include/linux/swap.h 2.3.14-pre1-page_io/include/linux/swap.h
--- 2.3.14-pre1/include/linux/swap.h Wed Aug 18 17:44:42 1999
+++ 2.3.14-pre1-page_io/include/linux/swap.h Wed Aug 18 19:13:07 1999
@@ -85,7 +85,6 @@
/* linux/mm/page_io.c */
extern void rw_swap_page(int, struct page *, int);
-extern void rw_swap_page_nocache(int, unsigned long, char *);
extern void rw_swap_page_nolock(int, unsigned long, char *, int);
extern void swap_after_unlock_page (unsigned long entry);
diff -ur 2.3.14-pre1/mm/page_io.c 2.3.14-pre1-page_io/mm/page_io.c
--- 2.3.14-pre1/mm/page_io.c Thu Aug 12 02:53:25 1999
+++ 2.3.14-pre1-page_io/mm/page_io.c Wed Aug 18 19:12:52 1999
@@ -170,24 +170,6 @@
}
/*
- * Setting up a new swap file needs a simple wrapper just to read the
- * swap signature. SysV shared memory also needs a simple wrapper.
- */
-void rw_swap_page_nocache(int rw, unsigned long entry, char *buf)
-{
- struct page *page = mem_map + MAP_NR(buf);
-
- if (TryLockPage(page))
- PAGE_BUG(page);
- if (PageSwapCache(page))
- PAGE_BUG(page);
- if (page->inode)
- PAGE_BUG(page);
- page->offset = entry;
- rw_swap_page_base(rw, entry, page, 1, 1);
-}
-
-/*
* shmfs needs a version that doesn't put the page in the page cache!
* The swap lock map insists that pages be in the page cache!
* Therefore we can't use it. Later when we can remove the need for the
Andrea
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-08-18 17:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-18 17:23 [patch] rw_swap_page_nocache dead Andrea Arcangeli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox