mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 03:24:19 +02:00
btrfs: rename err to ret in btrfs_try_lock_extent_bits()
Unify naming of return value to the preferred way. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
986b6aa185
commit
886240cbcd
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user