]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: scrub: drop unused parameter sctx from scrub_submit_extent_sector_read()
authorDavid Sterba <dsterba@suse.com>
Wed, 9 Oct 2024 14:31:15 +0000 (16:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:15 +0000 (14:34 +0100)
The parameter is unused and we can reach sctx from scrub stripe if
needed.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c

index 52e09f307462323d9ef84ab587c6d723be4fb65a..f21fc6cf07c0ebc351d0ff397e8ad562b495ffc4 100644 (file)
@@ -1656,8 +1656,7 @@ static u32 stripe_length(const struct scrub_stripe *stripe)
                   stripe->bg->start + stripe->bg->length - stripe->logical);
 }
 
-static void scrub_submit_extent_sector_read(struct scrub_ctx *sctx,
-                                           struct scrub_stripe *stripe)
+static void scrub_submit_extent_sector_read(struct scrub_stripe *stripe)
 {
        struct btrfs_fs_info *fs_info = stripe->bg->fs_info;
        struct btrfs_bio *bbio = NULL;
@@ -1753,7 +1752,7 @@ static void scrub_submit_initial_read(struct scrub_ctx *sctx,
        ASSERT(test_bit(SCRUB_STRIPE_FLAG_INITIALIZED, &stripe->state));
 
        if (btrfs_need_stripe_tree_update(fs_info, stripe->bg->flags)) {
-               scrub_submit_extent_sector_read(sctx, stripe);
+               scrub_submit_extent_sector_read(stripe);
                return;
        }