diff options
author | Jerome Marchand <jmarchan@redhat.com> | 2007-10-23 09:05:46 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-10-29 06:33:05 -0400 |
commit | b238b3d4be04d3acf1f86ff8ad0b0e803def67ff (patch) | |
tree | e1af361f05bdbed9d78553e3b3f5410b7f5eff87 /block | |
parent | 2a397e82c7db18019e408f953dd58dc1963a328c (diff) |
block layer: remove a unused argument of drive_stat_acct()
The nr_sector argument of drive_stat_acct() is not used anymore since the read and write sectors statistics are now updated in end_that_request_first(). This patch removes the useless argument.
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/ll_rw_blk.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index b01dee3ae7f3..49c0f18cb783 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -39,7 +39,7 @@ | |||
39 | 39 | ||
40 | static void blk_unplug_work(struct work_struct *work); | 40 | static void blk_unplug_work(struct work_struct *work); |
41 | static void blk_unplug_timeout(unsigned long data); | 41 | static void blk_unplug_timeout(unsigned long data); |
42 | static void drive_stat_acct(struct request *rq, int nr_sectors, int new_io); | 42 | static void drive_stat_acct(struct request *rq, int new_io); |
43 | static void init_request_from_bio(struct request *req, struct bio *bio); | 43 | static void init_request_from_bio(struct request *req, struct bio *bio); |
44 | static int __make_request(struct request_queue *q, struct bio *bio); | 44 | static int __make_request(struct request_queue *q, struct bio *bio); |
45 | static struct io_context *current_io_context(gfp_t gfp_flags, int node); | 45 | static struct io_context *current_io_context(gfp_t gfp_flags, int node); |
@@ -2341,7 +2341,7 @@ void blk_insert_request(struct request_queue *q, struct request *rq, | |||
2341 | if (blk_rq_tagged(rq)) | 2341 | if (blk_rq_tagged(rq)) |
2342 | blk_queue_end_tag(q, rq); | 2342 | blk_queue_end_tag(q, rq); |
2343 | 2343 | ||
2344 | drive_stat_acct(rq, rq->nr_sectors, 1); | 2344 | drive_stat_acct(rq, 1); |
2345 | __elv_add_request(q, rq, where, 0); | 2345 | __elv_add_request(q, rq, where, 0); |
2346 | blk_start_queueing(q); | 2346 | blk_start_queueing(q); |
2347 | spin_unlock_irqrestore(q->queue_lock, flags); | 2347 | spin_unlock_irqrestore(q->queue_lock, flags); |
@@ -2736,7 +2736,7 @@ int blkdev_issue_flush(struct block_device *bdev, sector_t *error_sector) | |||
2736 | 2736 | ||
2737 | EXPORT_SYMBOL(blkdev_issue_flush); | 2737 | EXPORT_SYMBOL(blkdev_issue_flush); |
2738 | 2738 | ||
2739 | static void drive_stat_acct(struct request *rq, int nr_sectors, int new_io) | 2739 | static void drive_stat_acct(struct request *rq, int new_io) |
2740 | { | 2740 | { |
2741 | int rw = rq_data_dir(rq); | 2741 | int rw = rq_data_dir(rq); |
2742 | 2742 | ||
@@ -2758,7 +2758,7 @@ static void drive_stat_acct(struct request *rq, int nr_sectors, int new_io) | |||
2758 | */ | 2758 | */ |
2759 | static inline void add_request(struct request_queue * q, struct request * req) | 2759 | static inline void add_request(struct request_queue * q, struct request * req) |
2760 | { | 2760 | { |
2761 | drive_stat_acct(req, req->nr_sectors, 1); | 2761 | drive_stat_acct(req, 1); |
2762 | 2762 | ||
2763 | /* | 2763 | /* |
2764 | * elevator indicated where it wants this request to be | 2764 | * elevator indicated where it wants this request to be |
@@ -3015,7 +3015,7 @@ static int __make_request(struct request_queue *q, struct bio *bio) | |||
3015 | req->biotail = bio; | 3015 | req->biotail = bio; |
3016 | req->nr_sectors = req->hard_nr_sectors += nr_sectors; | 3016 | req->nr_sectors = req->hard_nr_sectors += nr_sectors; |
3017 | req->ioprio = ioprio_best(req->ioprio, prio); | 3017 | req->ioprio = ioprio_best(req->ioprio, prio); |
3018 | drive_stat_acct(req, nr_sectors, 0); | 3018 | drive_stat_acct(req, 0); |
3019 | if (!attempt_back_merge(q, req)) | 3019 | if (!attempt_back_merge(q, req)) |
3020 | elv_merged_request(q, req, el_ret); | 3020 | elv_merged_request(q, req, el_ret); |
3021 | goto out; | 3021 | goto out; |
@@ -3042,7 +3042,7 @@ static int __make_request(struct request_queue *q, struct bio *bio) | |||
3042 | req->sector = req->hard_sector = bio->bi_sector; | 3042 | req->sector = req->hard_sector = bio->bi_sector; |
3043 | req->nr_sectors = req->hard_nr_sectors += nr_sectors; | 3043 | req->nr_sectors = req->hard_nr_sectors += nr_sectors; |
3044 | req->ioprio = ioprio_best(req->ioprio, prio); | 3044 | req->ioprio = ioprio_best(req->ioprio, prio); |
3045 | drive_stat_acct(req, nr_sectors, 0); | 3045 | drive_stat_acct(req, 0); |
3046 | if (!attempt_front_merge(q, req)) | 3046 | if (!attempt_front_merge(q, req)) |
3047 | elv_merged_request(q, req, el_ret); | 3047 | elv_merged_request(q, req, el_ret); |
3048 | goto out; | 3048 | goto out; |