mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
btrfs: scrub: drop unused parameter sctx from scrub_submit_extent_sector_read()
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>
This commit is contained in:
parent
a86a735d03
commit
f2c144fba7
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user