]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: switch extent_buffer blocking_writers from atomic to int
authorDavid Sterba <dsterba@suse.com>
Thu, 2 May 2019 14:47:23 +0000 (16:47 +0200)
committerDavid Sterba <dsterba@suse.com>
Tue, 2 Jul 2019 10:30:47 +0000 (12:30 +0200)
commit0b8a4ab7855773f0df2fdbd6c1f6f58f6205ca07
treebbf684133e27424453c3a72fbd8b348feb3df9bd
parent8d621ac34579adbf4761edca2b0687d88bc9a5cb
btrfs: switch extent_buffer blocking_writers from atomic to int

The blocking_writers is either 0 or 1 and always updated under the lock,
so we don't need the atomic_t semantics.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/locking.c
fs/btrfs/print-tree.c