aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-io-tree.c
diff options
context:
space:
mode:
authorDavid Sterba <[email protected]>2025-05-30 16:17:48 +0000
committerDavid Sterba <[email protected]>2025-07-21 21:53:27 +0000
commit886240cbcd452af1321c9d2cf8e63113ca5875e1 (patch)
tree8f072ba44ae25fea87ac25068a46a8f6fcdf6444 /fs/btrfs/extent-io-tree.c
parentbtrfs: rename err to ret2 in btrfs_truncate_inode_items() (diff)
downloadkernel-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]>
Diffstat (limited to 'fs/btrfs/extent-io-tree.c')
-rw-r--r--fs/btrfs/extent-io-tree.c7
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);