summaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-05-02 17:51:53 +0300
committerDavid Sterba <dsterba@suse.com>2019-07-02 13:30:47 +0300
commitf3dc24c52a28c700e35757dce7b38456888071e1 (patch)
treea7f9cac885813362dfdeac6dc2165e961031da71 /fs/btrfs/extent_io.h
parent06297d8cefcaa2029c4cb71b79285d2bfff06d4d (diff)
downloadlinux-f3dc24c52a28c700e35757dce7b38456888071e1.tar.xz
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.h2
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;