#include <linux/config.h>
#include <linux/swap.h>
#include <linux/vs_memory.h>
+#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
/*
if (rss < freed)
freed = rss;
- // mm->rss = rss - freed;
vx_rsspages_sub(mm, freed);
tlb_flush_mmu(tlb, start, end);
__pte_free_tlb(tlb, ptep); \
} while (0)
+#ifndef __ARCH_HAS_4LEVEL_HACK
+#define pud_free_tlb(tlb, pudp) \
+ do { \
+ tlb->need_flush = 1; \
+ __pud_free_tlb(tlb, pudp); \
+ } while (0)
+#endif
+
#define pmd_free_tlb(tlb, pmdp) \
do { \
tlb->need_flush = 1; \
__pmd_free_tlb(tlb, pmdp); \
} while (0)
+#define tlb_migrate_finish(mm) do {} while (0)
+
#endif /* _ASM_GENERIC__TLB_H */