diff options
Diffstat (limited to 'include/linux/rmap-locking.h')
| -rw-r--r-- | include/linux/rmap-locking.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/rmap-locking.h b/include/linux/rmap-locking.h index 302a58f54ca3..51f6697f3794 100644 --- a/include/linux/rmap-locking.h +++ b/include/linux/rmap-locking.h @@ -5,6 +5,11 @@ * pte chain. */ +#include <linux/slab.h> + +struct pte_chain; +extern kmem_cache_t *pte_chain_cache; + static inline void pte_chain_lock(struct page *page) { /* @@ -31,3 +36,12 @@ static inline void pte_chain_unlock(struct page *page) #endif preempt_enable(); } + +struct pte_chain *pte_chain_alloc(int gfp_flags); +void __pte_chain_free(struct pte_chain *pte_chain); + +static inline void pte_chain_free(struct pte_chain *pte_chain) +{ + if (pte_chain) + __pte_chain_free(pte_chain); +} |
