btrfs: rename err to ret in scrub_submit_extent_sector_read()
authorDavid Sterba <dsterba@suse.com>
Fri, 30 May 2025 16:19:06 +0000 (18:19 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:53:29 +0000 (23:53 +0200)
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>
fs/btrfs/scrub.c

index 7cd5e76a783cb9c11e1dc0fea9ce43e331f4029e..e8fa277545637640942895d85d6ca931d1aa9311 100644 (file)
@@ -1806,7 +1806,7 @@ static void scrub_submit_extent_sector_read(struct scrub_stripe *stripe)
                        struct btrfs_io_context *bioc = NULL;
                        const u64 logical = stripe->logical +
                                            (i << fs_info->sectorsize_bits);
-                       int err;
+                       int ret;
 
                        io_stripe.rst_search_commit_root = true;
                        stripe_len = (nr_sectors - i) << fs_info->sectorsize_bits;
@@ -1814,11 +1814,11 @@ static void scrub_submit_extent_sector_read(struct scrub_stripe *stripe)
                         * For RST cases, we need to manually split the bbio to
                         * follow the RST boundary.
                         */
-                       err = btrfs_map_block(fs_info, BTRFS_MAP_READ, logical,
+                       ret = btrfs_map_block(fs_info, BTRFS_MAP_READ, logical,
                                              &stripe_len, &bioc, &io_stripe, &mirror);
                        btrfs_put_bioc(bioc);
-                       if (err < 0) {
-                               if (err != -ENODATA) {
+                       if (ret < 0) {
+                               if (ret != -ENODATA) {
                                        /*
                                         * Earlier btrfs_get_raid_extent_offset()
                                         * returned -ENODATA, which means there's