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.c | |
parent | 06297d8cefcaa2029c4cb71b79285d2bfff06d4d (diff) | |
download | linux-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.c | 2 |
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); |