diff options
| author | David Sterba <[email protected]> | 2019-05-02 14:47:23 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-07-02 10:30:47 +0000 |
| commit | 06297d8cefcaa2029c4cb71b79285d2bfff06d4d (patch) | |
| tree | bbf684133e27424453c3a72fbd8b348feb3df9bd /fs/btrfs/print-tree.c | |
| parent | btrfs: assert delayed ref lock in btrfs_find_delayed_ref_head (diff) | |
| download | kernel-06297d8cefcaa2029c4cb71b79285d2bfff06d4d.tar.gz kernel-06297d8cefcaa2029c4cb71b79285d2bfff06d4d.zip | |
btrfs: switch extent_buffer blocking_writers from atomic to int
The blocking_writers is either 0 or 1 and always updated under the lock,
so we don't need the atomic_t semantics.
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/print-tree.c')
| -rw-r--r-- | fs/btrfs/print-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/print-tree.c b/fs/btrfs/print-tree.c index 1141ca5fae6a..7cb4f1fbe043 100644 --- a/fs/btrfs/print-tree.c +++ b/fs/btrfs/print-tree.c @@ -155,7 +155,7 @@ static void print_eb_refs_lock(struct extent_buffer *eb) "refs %u lock (w:%d r:%d bw:%d br:%d sw:%d sr:%d) lock_owner %u current %u", atomic_read(&eb->refs), atomic_read(&eb->write_locks), atomic_read(&eb->read_locks), - atomic_read(&eb->blocking_writers), + eb->blocking_writers, atomic_read(&eb->blocking_readers), atomic_read(&eb->spinning_writers), atomic_read(&eb->spinning_readers), |
