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>
This commit is contained in:
@@ -167,7 +167,7 @@ struct extent_buffer {
|
||||
struct rcu_head rcu_head;
|
||||
pid_t lock_owner;
|
||||
|
||||
atomic_t blocking_writers;
|
||||
int blocking_writers;
|
||||
atomic_t blocking_readers;
|
||||
bool lock_nested;
|
||||
/* >= 0 if eb belongs to a log tree, -1 otherwise */
|
||||
|
Reference in New Issue
Block a user