summaryrefslogtreecommitdiff
path: root/include/linux/rmap-locking.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/rmap-locking.h')
-rw-r--r--include/linux/rmap-locking.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/rmap-locking.h b/include/linux/rmap-locking.h
index d4dd60e34e25..cb30ed470cf6 100644
--- a/include/linux/rmap-locking.h
+++ b/include/linux/rmap-locking.h
@@ -10,8 +10,8 @@
struct pte_chain;
extern kmem_cache_t *pte_chain_cache;
-#define pte_chain_lock(page) bit_spin_lock(PG_chainlock, &page->flags)
-#define pte_chain_unlock(page) bit_spin_unlock(PG_chainlock, &page->flags)
+#define pte_chain_lock(page) bit_spin_lock(PG_chainlock, (unsigned long *)&page->flags)
+#define pte_chain_unlock(page) bit_spin_unlock(PG_chainlock, (unsigned long *)&page->flags)
struct pte_chain *pte_chain_alloc(int gfp_flags);
void __pte_chain_free(struct pte_chain *pte_chain);