diff options
| author | Patrick Mochel <mochel@osdl.org> | 2003-01-06 23:38:43 -0600 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-01-06 23:38:43 -0600 |
| commit | eeacc9367455a3bbbed00ced63a06c65fe347784 (patch) | |
| tree | 55b12e320e6065468186214509cc08076e0fb32f /include/linux/rmap-locking.h | |
| parent | 351b11abdb0c25cb383b8e881939a6e2f3d64c28 (diff) | |
| parent | a34aca8a2ee295cc711418518f1d8c9fe099833d (diff) | |
Merge osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-core
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); +} |
