vserver 2.0-rc4
[linux-2.6.git] / include / asm-ia64 / tlb.h
index d5c39f7..6a9cb3b 100644 (file)
@@ -39,7 +39,9 @@
  */
 #include <linux/config.h>
 #include <linux/mm.h>
+#include <linux/pagemap.h>
 #include <linux/swap.h>
+#include <linux/vs_memory.h>
 
 #include <asm/pgalloc.h>
 #include <asm/processor.h>
@@ -164,7 +166,6 @@ tlb_finish_mmu (struct mmu_gather *tlb, unsigned long start, unsigned long end)
 
        if (rss < freed)
                freed = rss;
-       // mm->rss = rss - freed;
        vx_rsspages_sub(mm, freed);
        /*
         * Note: tlb->nr may be 0 at this point, so we can't rely on tlb->start_addr and
@@ -236,4 +237,10 @@ do {                                                       \
        __pmd_free_tlb(tlb, ptep);                      \
 } while (0)
 
+#define pud_free_tlb(tlb, pudp)                                \
+do {                                                   \
+       tlb->need_flush = 1;                            \
+       __pud_free_tlb(tlb, pudp);                      \
+} while (0)
+
 #endif /* _ASM_IA64_TLB_H */