diff options
| author | David Sterba <[email protected]> | 2025-04-23 16:53:57 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:49 +0000 |
| commit | f963e0128b180e8ab501bf1d5772fce17c36d68f (patch) | |
| tree | 31cedb1df93b43743ac2e27ddd1cd5d13900128e /fs/btrfs/locking.h | |
| parent | btrfs: subpage: reject tree blocks which are not nodesize aligned (diff) | |
| download | kernel-f963e0128b180e8ab501bf1d5772fce17c36d68f.tar.gz kernel-f963e0128b180e8ab501bf1d5772fce17c36d68f.zip | |
btrfs: trivial conversion to return bool instead of int
Old code has a lot of int for bool return values, bool is recommended
and done in new code. Convert the trivial cases that do simple 0/false
and 1/true. Functions comment are updated if needed.
Reviewed-by: Naohiro Aota <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/locking.h')
| -rw-r--r-- | fs/btrfs/locking.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/locking.h b/fs/btrfs/locking.h index c69e57ff804b..af29df98ac14 100644 --- a/fs/btrfs/locking.h +++ b/fs/btrfs/locking.h @@ -189,7 +189,7 @@ static inline void btrfs_tree_read_lock(struct extent_buffer *eb) } void btrfs_tree_read_unlock(struct extent_buffer *eb); -int btrfs_try_tree_read_lock(struct extent_buffer *eb); +bool btrfs_try_tree_read_lock(struct extent_buffer *eb); struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root); struct extent_buffer *btrfs_read_lock_root_node(struct btrfs_root *root); struct extent_buffer *btrfs_try_read_lock_root_node(struct btrfs_root *root); |
