diff options
Diffstat (limited to 'fs/btrfs/locking.c')
-rw-r--r-- | fs/btrfs/locking.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/locking.c b/fs/btrfs/locking.c index 3f7b5989e31e..6df03ba36026 100644 --- a/fs/btrfs/locking.c +++ b/fs/btrfs/locking.c | |||
@@ -172,7 +172,7 @@ again: | |||
172 | * called on a partly (write-)locked tree. | 172 | * called on a partly (write-)locked tree. |
173 | */ | 173 | */ |
174 | BUG_ON(eb->lock_nested); | 174 | BUG_ON(eb->lock_nested); |
175 | eb->lock_nested = 1; | 175 | eb->lock_nested = true; |
176 | read_unlock(&eb->lock); | 176 | read_unlock(&eb->lock); |
177 | return; | 177 | return; |
178 | } | 178 | } |
@@ -261,7 +261,7 @@ void btrfs_tree_read_unlock(struct extent_buffer *eb) | |||
261 | * field only matters to the lock owner. | 261 | * field only matters to the lock owner. |
262 | */ | 262 | */ |
263 | if (eb->lock_nested && current->pid == eb->lock_owner) { | 263 | if (eb->lock_nested && current->pid == eb->lock_owner) { |
264 | eb->lock_nested = 0; | 264 | eb->lock_nested = false; |
265 | return; | 265 | return; |
266 | } | 266 | } |
267 | btrfs_assert_tree_read_locked(eb); | 267 | btrfs_assert_tree_read_locked(eb); |
@@ -282,7 +282,7 @@ void btrfs_tree_read_unlock_blocking(struct extent_buffer *eb) | |||
282 | * field only matters to the lock owner. | 282 | * field only matters to the lock owner. |
283 | */ | 283 | */ |
284 | if (eb->lock_nested && current->pid == eb->lock_owner) { | 284 | if (eb->lock_nested && current->pid == eb->lock_owner) { |
285 | eb->lock_nested = 0; | 285 | eb->lock_nested = false; |
286 | return; | 286 | return; |
287 | } | 287 | } |
288 | btrfs_assert_tree_read_locked(eb); | 288 | btrfs_assert_tree_read_locked(eb); |