patch-2.6.6-vs1.9.0
[linux-2.6.git] / include / asm-generic / tlb.h
index 1358c51..aa7d3c0 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <linux/config.h>
 #include <linux/swap.h>
+#include <linux/vinline.h>
 #include <asm/tlbflush.h>
 
 /*
@@ -91,7 +92,8 @@ tlb_finish_mmu(struct mmu_gather *tlb, unsigned long start, unsigned long end)
 
        if (rss < freed)
                freed = rss;
-       mm->rss = rss - freed;
+       // mm->rss = rss - freed;
+       vx_rsspages_sub(mm, freed);
        tlb_flush_mmu(tlb, start, end);
 
        /* keep the page table cache within bounds */