btrfs: use assertion helpers for spinning writers
[sfrench/cifs-2.6.git] / fs / btrfs / extent_io.h
index 1e5be66c7e0b20c004b8c018b3da411e00089c9c..3577ef33bc36761e4bedc4c106259ee045a2d619 100644 (file)
@@ -166,7 +166,6 @@ struct extent_buffer {
        atomic_t blocking_writers;
        atomic_t blocking_readers;
        atomic_t spinning_readers;
-       atomic_t spinning_writers;
        short lock_nested;
        /* >= 0 if eb belongs to a log tree, -1 otherwise */
        short log_index;
@@ -185,6 +184,7 @@ struct extent_buffer {
        wait_queue_head_t read_lock_wq;
        struct page *pages[INLINE_EXTENT_BUFFER_PAGES];
 #ifdef CONFIG_BTRFS_DEBUG
+       atomic_t spinning_writers;
        struct list_head leak_list;
 #endif
 };