Skip to content

Commit a83134b

Browse files
committed
btrfs: rename ret to status in btrfs_submit_compressed_read()
We're using 'status' for the blk_status_t variables, rename 'ret' so we can use it for generic errors. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 79cbc15 commit a83134b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fs/btrfs/compression.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -576,15 +576,15 @@ void btrfs_submit_compressed_read(struct btrfs_bio *bbio)
576576
struct extent_map *em;
577577
unsigned long pflags;
578578
int memstall = 0;
579-
blk_status_t ret;
579+
blk_status_t status;
580580
int ret2;
581581

582582
/* we need the actual starting offset of this extent in the file */
583583
read_lock(&em_tree->lock);
584584
em = btrfs_lookup_extent_mapping(em_tree, file_offset, fs_info->sectorsize);
585585
read_unlock(&em_tree->lock);
586586
if (!em) {
587-
ret = BLK_STS_IOERR;
587+
status = BLK_STS_IOERR;
588588
goto out;
589589
}
590590

@@ -608,13 +608,13 @@ void btrfs_submit_compressed_read(struct btrfs_bio *bbio)
608608
cb->nr_folios = DIV_ROUND_UP(compressed_len, PAGE_SIZE);
609609
cb->compressed_folios = kcalloc(cb->nr_folios, sizeof(struct folio *), GFP_NOFS);
610610
if (!cb->compressed_folios) {
611-
ret = BLK_STS_RESOURCE;
611+
status = BLK_STS_RESOURCE;
612612
goto out_free_bio;
613613
}
614614

615615
ret2 = btrfs_alloc_folio_array(cb->nr_folios, cb->compressed_folios);
616616
if (ret2) {
617-
ret = BLK_STS_RESOURCE;
617+
status = BLK_STS_RESOURCE;
618618
goto out_free_compressed_pages;
619619
}
620620

@@ -637,7 +637,7 @@ void btrfs_submit_compressed_read(struct btrfs_bio *bbio)
637637
out_free_bio:
638638
bio_put(&cb->bbio.bio);
639639
out:
640-
btrfs_bio_end_io(bbio, ret);
640+
btrfs_bio_end_io(bbio, status);
641641
}
642642

643643
/*

0 commit comments

Comments
 (0)