btrfs: rename ret2 to ret in btrfs_submit_compressed_read()
authorDavid Sterba <dsterba@suse.com>
Wed, 23 Apr 2025 15:57:22 +0000 (17:57 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:49 +0000 (14:30 +0200)
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>
fs/btrfs/compression.c

index 3620da19a8dd3b6f8713e70cd6cae3c7007e881d..48d07939fee4a0dd3a2e824ecd6ad0913cc0018d 100644 (file)
@@ -577,7 +577,7 @@ void btrfs_submit_compressed_read(struct btrfs_bio *bbio)
        unsigned long pflags;
        int memstall = 0;
        blk_status_t status;
-       int ret2;
+       int ret;
 
        /* we need the actual starting offset of this extent in the file */
        read_lock(&em_tree->lock);
@@ -612,8 +612,8 @@ void btrfs_submit_compressed_read(struct btrfs_bio *bbio)
                goto out_free_bio;
        }
 
-       ret2 = btrfs_alloc_folio_array(cb->nr_folios, cb->compressed_folios);
-       if (ret2) {
+       ret = btrfs_alloc_folio_array(cb->nr_folios, cb->compressed_folios);
+       if (ret) {
                status = BLK_STS_RESOURCE;
                goto out_free_compressed_pages;
        }