summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.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/extent_io.c
parent06297d8cefcaa2029c4cb71b79285d2bfff06d4d (diff)
downloadlinux-f3dc24c52a28c700e35757dce7b38456888071e1.tar.gz
linux-f3dc24c52a28c700e35757dce7b38456888071e1.tar.bz2
linux-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 <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 6c49db9bfcf1..fef346c63203 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -4876,7 +4876,7 @@ __alloc_extent_buffer(struct btrfs_fs_info *fs_info, u64 start,
BUG_ON(len > MAX_INLINE_EXTENT_BUFFER_SIZE);
#ifdef CONFIG_BTRFS_DEBUG
- atomic_set(&eb->spinning_writers, 0);
+ eb->spinning_writers = 0;
atomic_set(&eb->spinning_readers, 0);
atomic_set(&eb->read_locks, 0);
atomic_set(&eb->write_locks, 0);