diff options
author | David Sterba <dsterba@suse.com> | 2019-05-02 16:51:53 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-07-02 12:30:47 +0200 |
commit | f3dc24c52a28c700e35757dce7b38456888071e1 (patch) | |
tree | a7f9cac885813362dfdeac6dc2165e961031da71 /fs/btrfs/extent_io.h | |
parent | 06297d8cefcaa2029c4cb71b79285d2bfff06d4d (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/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index 201da61dfc21..5616b96c365d 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -187,7 +187,7 @@ struct extent_buffer { wait_queue_head_t read_lock_wq; struct page *pages[INLINE_EXTENT_BUFFER_PAGES]; #ifdef CONFIG_BTRFS_DEBUG - atomic_t spinning_writers; + int spinning_writers; atomic_t spinning_readers; atomic_t read_locks; atomic_t write_locks; |