diff options
| author | David Sterba <[email protected]> | 2019-05-02 14:51:53 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-07-02 10:30:47 +0000 |
| commit | f3dc24c52a28c700e35757dce7b38456888071e1 (patch) | |
| tree | a7f9cac885813362dfdeac6dc2165e961031da71 /fs/btrfs/print-tree.c | |
| parent | btrfs: switch extent_buffer blocking_writers from atomic to int (diff) | |
| download | kernel-f3dc24c52a28c700e35757dce7b38456888071e1.tar.gz kernel-f3dc24c52a28c700e35757dce7b38456888071e1.zip | |
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 <[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 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 |
