summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/print-tree.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-05-02 16:51:53 +0200
committerDavid Sterba <dsterba@suse.com>2019-07-02 12:30:47 +0200
commitf3dc24c52a28c700e35757dce7b38456888071e1 (patch)
treea7f9cac885813362dfdeac6dc2165e961031da71 /fs/btrfs/print-tree.c
parent06297d8cefcaa2029c4cb71b79285d2bfff06d4d (diff)
downloadlinux-f3dc24c52a28c700e35757dce7b38456888071e1.tar.bz2
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)
atomic_read(&eb->read_locks),
eb->blocking_writers,
atomic_read(&eb->blocking_readers),
- atomic_read(&eb->spinning_writers),
+ eb->spinning_writers,
atomic_read(&eb->spinning_readers),
eb->lock_owner, current->pid);
#endif