Skip to content

Commit d2080c7

Browse files
committed
btrfs: rename ret2 to ret in btrfs_submit_compressed_read()
We can now rename 'ret2' to 'ret' and use it for generic errors. Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent a83134b commit d2080c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fs/btrfs/compression.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ void btrfs_submit_compressed_read(struct btrfs_bio *bbio)
577577
unsigned long pflags;
578578
int memstall = 0;
579579
blk_status_t status;
580-
int ret2;
580+
int ret;
581581

582582
/* we need the actual starting offset of this extent in the file */
583583
read_lock(&em_tree->lock);
@@ -612,8 +612,8 @@ void btrfs_submit_compressed_read(struct btrfs_bio *bbio)
612612
goto out_free_bio;
613613
}
614614

615-
ret2 = btrfs_alloc_folio_array(cb->nr_folios, cb->compressed_folios);
616-
if (ret2) {
615+
ret = btrfs_alloc_folio_array(cb->nr_folios, cb->compressed_folios);
616+
if (ret) {
617617
status = BLK_STS_RESOURCE;
618618
goto out_free_compressed_pages;
619619
}

0 commit comments

Comments
 (0)