VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / include / asm-generic / tlb.h
index 1358c51..c293149 100644 (file)
@@ -15,6 +15,8 @@
 
 #include <linux/config.h>
 #include <linux/swap.h>
+#include <linux/vs_memory.h>
+#include <asm/pgalloc.h>
 #include <asm/tlbflush.h>
 
 /*
@@ -91,7 +93,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 */
@@ -146,4 +149,6 @@ static inline void tlb_remove_page(struct mmu_gather *tlb, struct page *page)
                __pmd_free_tlb(tlb, pmdp);                      \
        } while (0)
 
+#define tlb_migrate_finish(mm) do {} while (0)
+
 #endif /* _ASM_GENERIC__TLB_H */