Skip to contentSkip to conversation

: reiser4 [4/8] export pagevec_deactivate_inactive()

PATCH New Nikita Danilov 1 participant 1 message Oct 31, 2002 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : reiser4 [4/8] export pagevec_deactivate_inactive()

Hello, Linus,

Following patch exports pagevec_deactivate_inactive(): reiser4 uses its own ->writepages() method rather than mpage_writepages(). It needs access to pagevec_deactivate_inactive() to play fair with VM.

Please apply.
Nikita.

mm/Makefile +1 -1
diff -urN linus-bk-2.5/mm/Makefile linux-2.5-reiser4/mm/Makefile
@@ -2,7 +2,7 @@
 # Makefile for the linux memory manager.
 #
 
-export-objs := shmem.o filemap.o mempool.o page_alloc.o page-writeback.o
+export-objs := shmem.o filemap.o mempool.o page_alloc.o page-writeback.o swap.o
 
 obj-y	 := memory.o mmap.o filemap.o mprotect.o mlock.o mremap.o \
 	    vmalloc.o slab.o bootmem.o swap.o vmscan.o page_io.o \
mm/swap.c +2 -0
diff -urN linux-2.5.44-bk3-reiser4/mm/swap.c linux-2.5.44-bk3-reiser4.1/mm/swap.c
@@ -22,6 +22,7 @@
 #include <linux/mm_inline.h>
 #include <linux/buffer_head.h>
 #include <linux/prefetch.h>
+#include <linux/module.h>
 
 /* How many pages do we try to swap or page in/out together? */
 int page_cluster;
@@ -192,6 +193,7 @@
 		spin_unlock_irq(&zone->lru_lock);
 	__pagevec_release(pvec);
 }
+EXPORT_SYMBOL(pagevec_deactivate_inactive);
 
 /*
  * Add the passed pages to the LRU, then drop the caller's refcount