aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/print-tree.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-05-02 10:51:53 -0400
committerDavid Sterba <dsterba@suse.com>2019-07-02 06:30:47 -0400
commitf3dc24c52a28c700e35757dce7b38456888071e1 (patch)
treea7f9cac885813362dfdeac6dc2165e961031da71 /fs/btrfs/print-tree.c
parent06297d8cefcaa2029c4cb71b79285d2bfff06d4d (diff)
btrfs: switch extent_buffer spinning_writers from atomic to int
The spinning_writers is either 0 or 1 and always updated under the lock, so we don't need the atomic_t semantics. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/print-tree.c')
-rw-r--r--fs/btrfs/print-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c
index 7cb4f1fbe043..c5cc435ed39a 100644
--- a/fs/btrfs/print-tree.c
+++ b/fs/btrfs/print-tree.c
@@ -157,7 +157,7 @@ static void print_eb_refs_lock(struct extent_buffer *eb)
157 atomic_read(&eb->read_locks), 157 atomic_read(&eb->read_locks),
158 eb->blocking_writers, 158 eb->blocking_writers,
159 atomic_read(&eb->blocking_readers), 159 atomic_read(&eb->blocking_readers),
160 atomic_read(&eb->spinning_writers), 160 eb->spinning_writers,
161 atomic_read(&eb->spinning_readers), 161 atomic_read(&eb->spinning_readers),
162 eb->lock_owner, current->pid); 162 eb->lock_owner, current->pid);
163#endif 163#endif