mm: add CONFIG_DEBUG_VM_RB build option
[firefly-linux-kernel-4.4.55.git] / include / linux / rmap.h
index dce44f7d3ed80c0c786045c00f8c455dc6630ef9..b2cce644ffc712faf6630e23c9d5fdbc10c3ae3d 100644 (file)
@@ -66,6 +66,9 @@ struct anon_vma_chain {
        struct list_head same_vma;   /* locked by mmap_sem & page_table_lock */
        struct rb_node rb;                      /* locked by anon_vma->mutex */
        unsigned long rb_subtree_last;
+#ifdef CONFIG_DEBUG_VM_RB
+       unsigned long cached_vma_start, cached_vma_last;
+#endif
 };
 
 #ifdef CONFIG_MMU