btrfs: use assertion helpers for extent buffer read lock counters
[sfrench/cifs-2.6.git] / fs / btrfs / extent_io.h
index 89e56df64d6cc7b9c0935865919d54fcbca6018c..41c5d0e9dc7567620ee69d4e9c392d6f9460e8dd 100644 (file)
@@ -162,7 +162,6 @@ struct extent_buffer {
 
        /* count of read lock holders on the extent buffer */
        atomic_t write_locks;
-       atomic_t read_locks;
        atomic_t blocking_writers;
        atomic_t blocking_readers;
        short lock_nested;
@@ -185,6 +184,7 @@ struct extent_buffer {
 #ifdef CONFIG_BTRFS_DEBUG
        atomic_t spinning_writers;
        atomic_t spinning_readers;
+       atomic_t read_locks;
        struct list_head leak_list;
 #endif
 };