btrfs: scrub: remove unused scrub_ctx::sectors_per_bio
authorDavid Sterba <dsterba@suse.com>
Tue, 21 Nov 2023 01:50:13 +0000 (02:50 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 15 Dec 2023 19:27:01 +0000 (20:27 +0100)
The recent scrub rewrite forgot to remove the sectors_per_bio in
6.3 in 13a62fd997f0 ("btrfs: scrub: remove scrub_bio structure").
This was found by tool https://github.com/jirislaby/clang-struct .

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c

index f62a408671cbc3ba06bf244bb12de96bdfb4334a..00826644bca8e63a99a0403ea5f71c720c7fc198 100644 (file)
@@ -192,7 +192,6 @@ struct scrub_ctx {
        int                     cur_stripe;
        atomic_t                cancel_req;
        int                     readonly;
-       int                     sectors_per_bio;
 
        /* State of IO submission throttling affecting the associated device */
        ktime_t                 throttle_deadline;