diff options
| author | David Sterba <[email protected]> | 2025-05-30 16:17:48 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-07-21 21:53:27 +0000 |
| commit | 886240cbcd452af1321c9d2cf8e63113ca5875e1 (patch) | |
| tree | 8f072ba44ae25fea87ac25068a46a8f6fcdf6444 | |
| parent | btrfs: rename err to ret2 in btrfs_truncate_inode_items() (diff) | |
| download | kernel-886240cbcd452af1321c9d2cf8e63113ca5875e1.tar.gz kernel-886240cbcd452af1321c9d2cf8e63113ca5875e1.zip | |
btrfs: rename err to ret in btrfs_try_lock_extent_bits()
Unify naming of return value to the preferred way.
Reviewed-by: Anand Jain <[email protected]>
Signed-off-by: David Sterba <[email protected]>
| -rw-r--r-- | fs/btrfs/extent-io-tree.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/btrfs/extent-io-tree.c b/fs/btrfs/extent-io-tree.c index b1b96eb5f64e..0f4c0b234573 100644 --- a/fs/btrfs/extent-io-tree.c +++ b/fs/btrfs/extent-io-tree.c @@ -1882,12 +1882,11 @@ int btrfs_clear_record_extent_bits(struct extent_io_tree *tree, u64 start, u64 e bool btrfs_try_lock_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, u32 bits, struct extent_state **cached) { - int err; + int ret; u64 failed_start; - err = set_extent_bit(tree, start, end, bits, &failed_start, NULL, - cached, NULL); - if (err == -EEXIST) { + ret = set_extent_bit(tree, start, end, bits, &failed_start, NULL, cached, NULL); + if (ret == -EEXIST) { if (failed_start > start) btrfs_clear_extent_bit(tree, start, failed_start - 1, bits, cached); |
