diff options
author | David Sterba <dsterba@suse.com> | 2025-04-23 17:57:19 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-05-15 14:30:48 +0200 |
commit | 9c0b0807ece11ea6adb346cf792fe5adaf8e0723 (patch) | |
tree | dc71389771caee05ee947ac121d85d5f723d641c | |
parent | beaa7cdb6a1fef3baa3048ddf74dd43e4d481f55 (diff) |
btrfs: rename error to ret in btrfs_submit_chunk()
We can now rename 'error' to 'ret' and use it for generic errors.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/bio.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/btrfs/bio.c b/fs/btrfs/bio.c index 7ea56856e9de..05a1bc450c1c 100644 --- a/fs/btrfs/bio.c +++ b/fs/btrfs/bio.c @@ -675,7 +675,7 @@ static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num) struct btrfs_io_context *bioc = NULL; struct btrfs_io_stripe smap; blk_status_t status; - int error; + int ret; if (!bbio->inode || btrfs_is_data_reloc_root(inode->root)) smap.rst_search_commit_root = true; @@ -683,10 +683,10 @@ static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num) smap.rst_search_commit_root = false; btrfs_bio_counter_inc_blocked(fs_info); - error = btrfs_map_block(fs_info, btrfs_op(bio), logical, &map_length, - &bioc, &smap, &mirror_num); - if (error) { - status = errno_to_blk_status(error); + ret = btrfs_map_block(fs_info, btrfs_op(bio), logical, &map_length, + &bioc, &smap, &mirror_num); + if (ret) { + status = errno_to_blk_status(ret); btrfs_bio_counter_dec(fs_info); goto end_bbio; } @@ -714,8 +714,8 @@ static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num) */ if (bio_op(bio) == REQ_OP_READ && is_data_bbio(bbio)) { bbio->saved_iter = bio->bi_iter; - error = btrfs_lookup_bio_sums(bbio); - status = errno_to_blk_status(error); + ret = btrfs_lookup_bio_sums(bbio); + status = errno_to_blk_status(ret); if (status) goto fail; } @@ -748,8 +748,8 @@ static bool btrfs_submit_chunk(struct btrfs_bio *bbio, int mirror_num) btrfs_wq_submit_bio(bbio, bioc, &smap, mirror_num)) goto done; - error = btrfs_bio_csum(bbio); - status = errno_to_blk_status(error); + ret = btrfs_bio_csum(bbio); + status = errno_to_blk_status(ret); if (status) goto fail; } else if (use_append || |