Skip to content

Commit 1f06959

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: remove the unused q argument to part_in_flight and part_in_flight_rw
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 8328eb2 commit 1f06959

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎block/genhd.c‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ static void part_stat_read_all(struct hd_struct *part, struct disk_stats *stat)
110110
}
111111
}
112112

113-
static unsigned int part_in_flight(struct request_queue *q,
114-
struct hd_struct *part)
113+
static unsigned int part_in_flight(struct hd_struct *part)
115114
{
116115
unsigned int inflight = 0;
117116
int cpu;
@@ -126,8 +125,7 @@ static unsigned int part_in_flight(struct request_queue *q,
126125
return inflight;
127126
}
128127

129-
static void part_in_flight_rw(struct request_queue *q, struct hd_struct *part,
130-
unsigned int inflight[2])
128+
static void part_in_flight_rw(struct hd_struct *part, unsigned int inflight[2])
131129
{
132130
int cpu;
133131

@@ -1301,7 +1299,7 @@ ssize_t part_stat_show(struct device *dev,
13011299
if (queue_is_mq(q))
13021300
inflight = blk_mq_in_flight(q, p);
13031301
else
1304-
inflight = part_in_flight(q, p);
1302+
inflight = part_in_flight(p);
13051303

13061304
return sprintf(buf,
13071305
"%8lu %8lu %8llu %8u "
@@ -1343,7 +1341,7 @@ ssize_t part_inflight_show(struct device *dev, struct device_attribute *attr,
13431341
if (queue_is_mq(q))
13441342
blk_mq_in_flight_rw(q, p, inflight);
13451343
else
1346-
part_in_flight_rw(q, p, inflight);
1344+
part_in_flight_rw(p, inflight);
13471345

13481346
return sprintf(buf, "%8u %8u\n", inflight[0], inflight[1]);
13491347
}
@@ -1623,7 +1621,7 @@ static int diskstats_show(struct seq_file *seqf, void *v)
16231621
if (queue_is_mq(gp->queue))
16241622
inflight = blk_mq_in_flight(gp->queue, hd);
16251623
else
1626-
inflight = part_in_flight(gp->queue, hd);
1624+
inflight = part_in_flight(hd);
16271625

16281626
seq_printf(seqf, "%4d %7d %s "
16291627
"%lu %lu %lu %u "

0 commit comments

Comments
 (0)