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