Skip to content

Commit 483a393

Browse files
Ming Leiaxboe
authored andcommitted
blk-throttle: remove last_bytes_disp and last_ios_disp
The two fields are not used any more, so remove them. Cc: Tejun Heo <[email protected]> Cc: Josef Bacik <[email protected]> Cc: Yu Kuai <[email protected]> Signed-off-by: Ming Lei <[email protected]> Acked-by: Tejun Heo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 29cb955 commit 483a393

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

block/blk-throttle.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,13 +819,10 @@ static void throtl_charge_bio(struct throtl_grp *tg, struct bio *bio)
819819
unsigned int bio_size = throtl_bio_data_size(bio);
820820

821821
/* Charge the bio to the group */
822-
if (!bio_flagged(bio, BIO_BPS_THROTTLED)) {
822+
if (!bio_flagged(bio, BIO_BPS_THROTTLED))
823823
tg->bytes_disp[rw] += bio_size;
824-
tg->last_bytes_disp[rw] += bio_size;
825-
}
826824

827825
tg->io_disp[rw]++;
828-
tg->last_io_disp[rw]++;
829826
}
830827

831828
/**

block/blk-throttle.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ struct throtl_grp {
106106
/* Number of bio's dispatched in current slice */
107107
unsigned int io_disp[2];
108108

109-
uint64_t last_bytes_disp[2];
110-
unsigned int last_io_disp[2];
111-
112109
/*
113110
* The following two fields are updated when new configuration is
114111
* submitted while some bios are still throttled, they record how many

0 commit comments

Comments
 (0)