----------------------------------------------------------------------------------------------------------
from the ftp://ftp.kernel.org/pub/linux/kernel/v2.4/patch-2.4.14.gz
----------------------------------------------------------------------------------------------------------
[...]
diff -u --recursive --new-file v2.4.13/linux/include/linux/swap.h linux/include/linux/swap.h
--- v2.4.13/linux/include/linux/swap.h Tue Oct 23 22:48:53 2001
+++ linux/include/linux/swap.h Mon Nov 5 12:42:13 2001
@@ -79,6 +79,10 @@
};
extern int nr_swap_pages;
+
+/* Swap 50% full? Release swapcache more aggressively.. */
+#define vm_swap_full() (nr_swap_pages*2 < total_swap_pages)
+
extern unsigned int nr_free_pages(void);
extern unsigned int nr_free_buffer_pages(void);
extern int nr_active_pages;
@@ -101,7 +105,6 @@
extern void FASTCALL(__lru_cache_del(struct page *));
extern void FASTCALL(lru_cache_del(struct page *));
-extern void FASTCALL(deactivate_page(struct page *));
extern void FASTCALL(activate_page(struct page *));
extern void swap_setup(void);
@@ -129,8 +132,7 @@
extern struct page * read_swap_cache_async(swp_entry_t);
/* linux/mm/oom_kill.c */
-extern int out_of_memory(void);
-extern void oom_kill(void);
+extern void out_of_memory(void);
/* linux/mm/swapfile.c */
[...]
----------------------------------------------------------------------------------------------------------
but drivers/block/loop.c still has references to "deactivate_page()"
Xtian.
-
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/