mm: properly separate the bloated ptl from the regular case
[linux-2.6-block.git] / include / linux / mm_types.h
index 423da79877e6aaf419d3dc59829902606d091397..10f5a7272b8046ff7561b6d78a3b665828415ef1 100644 (file)
@@ -147,10 +147,11 @@ struct page {
                                                 * system if PG_buddy is set.
                                                 */
 #if USE_SPLIT_PTE_PTLOCKS
-               unsigned long ptl; /* It's spinlock_t if it fits to long,
-                                   * otherwise it's pointer to dynamicaly
-                                   * allocated spinlock_t.
-                                   */
+#if BLOATED_SPINLOCKS
+               spinlock_t *ptl;
+#else
+               spinlock_t ptl;
+#endif
 #endif
                struct kmem_cache *slab_cache;  /* SL[AU]B: Pointer to slab */
                struct page *first_page;        /* Compound tail pages */