Whamcloud - gitweb
LU-6727 osd: auto locate BH_DXLock bit
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_handler.c
index 8c2486c..09709b3 100644 (file)
@@ -6205,6 +6205,7 @@ static int __init osd_mod_init(void)
 {
        int rc;
 
+       LASSERT(BH_DXLock < sizeof(((struct buffer_head *)0)->b_state) * 8);
 #if !defined(CONFIG_DEBUG_MUTEXES) && !defined(CONFIG_DEBUG_SPINLOCK)
        /* please, try to keep osd_thread_info smaller than a page */
        CLASSERT(sizeof(struct osd_thread_info) <= PAGE_SIZE);