git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 2.0-rc4
[linux-2.6.git]
/
include
/
asm-generic
/
tlb.h
diff --git
a/include/asm-generic/tlb.h
b/include/asm-generic/tlb.h
index
1358c51
..
c9948d4
100644
(file)
--- a/
include/asm-generic/tlb.h
+++ b/
include/asm-generic/tlb.h
@@
-15,6
+15,8
@@
#include <linux/config.h>
#include <linux/swap.h>
#include <linux/config.h>
#include <linux/swap.h>
+#include <linux/vs_memory.h>
+#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
/*
#include <asm/tlbflush.h>
/*
@@
-91,7
+93,7
@@
tlb_finish_mmu(struct mmu_gather *tlb, unsigned long start, unsigned long end)
if (rss < freed)
freed = rss;
if (rss < freed)
freed = rss;
-
mm->rss = rss - freed
;
+
vx_rsspages_sub(mm, freed)
;
tlb_flush_mmu(tlb, start, end);
/* keep the page table cache within bounds */
tlb_flush_mmu(tlb, start, end);
/* keep the page table cache within bounds */
@@
-140,10
+142,20
@@
static inline void tlb_remove_page(struct mmu_gather *tlb, struct page *page)
__pte_free_tlb(tlb, ptep); \
} while (0)
__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 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 */
#endif /* _ASM_GENERIC__TLB_H */