]> git.hungrycats.org Git - linux/commitdiff
btrfs: scrub: remove unused first_free member from struct scrub_ctx
authorFilipe Manana <fdmanana@suse.com>
Fri, 16 Oct 2026 16:29:52 +0000 (17:29 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Oct 2026 20:36:17 +0000 (21:36 +0100)
It's not used since commit 001e3fc263ce ("btrfs: scrub: remove
scrub_block and scrub_sector structures"), so remove it.

Reviewed-by: Daniel Vacek <neelx@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c

index dd844074e71435e1f7aabb5d6c4ed003491fc239..0d513f5959d04db4c1e3f39a11a852cfd8aa69da 100644 (file)
@@ -188,7 +188,6 @@ struct scrub_ctx {
        struct btrfs_fs_info    *fs_info;
        struct btrfs_path       extent_path;
        struct btrfs_path       csum_path;
-       int                     first_free;
        int                     cur_stripe;
        atomic_t                cancel_req;
        int                     readonly;
@@ -460,7 +459,6 @@ static noinline_for_stack struct scrub_ctx *scrub_setup_ctx(
                        goto nomem;
                sctx->stripes[i].sctx = sctx;
        }
-       sctx->first_free = 0;
        atomic_set(&sctx->cancel_req, 0);
 
        spin_lock_init(&sctx->stat_lock);