aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorAlan D. Brunelle <Alan.Brunelle@hp.com>2009-05-04 16:35:08 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-06 08:13:01 -0400
commit22a7c31a9659deaddafbbcec6562d44141e84474 (patch)
tree0fe1c64e82d673597c78c6ce5f3569d9101b5281 /kernel/trace
parenta42aaa3bbce85ac487ad4fad5db99e8e91b7aac1 (diff)
blktrace: from-sector redundant in trace_block_remap
Remove redundant from-sector parameter: it's /always/ the bio's sector passed in. [ Impact: cleanup ] Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com> Reviewed-by: Li Zefan <lizf@cn.fujitsu.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Cc: Jens Axboe <jens.axboe@oracle.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <49FF517C.7000503@hp.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/blktrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c
index f8d46d6f5d34..e099f8cc1d1c 100644
--- a/kernel/trace/blktrace.c
+++ b/kernel/trace/blktrace.c
@@ -830,7 +830,6 @@ static void blk_add_trace_split(struct request_queue *q, struct bio *bio,
830 * @q: queue the io is for 830 * @q: queue the io is for
831 * @bio: the source bio 831 * @bio: the source bio
832 * @dev: target device 832 * @dev: target device
833 * @to: target sector
834 * @from: source sector 833 * @from: source sector
835 * 834 *
836 * Description: 835 * Description:
@@ -839,7 +838,7 @@ static void blk_add_trace_split(struct request_queue *q, struct bio *bio,
839 * 838 *
840 **/ 839 **/
841static void blk_add_trace_remap(struct request_queue *q, struct bio *bio, 840static void blk_add_trace_remap(struct request_queue *q, struct bio *bio,
842 dev_t dev, sector_t to, sector_t from) 841 dev_t dev, sector_t from)
843{ 842{
844 struct blk_trace *bt = q->blk_trace; 843 struct blk_trace *bt = q->blk_trace;
845 struct blk_io_trace_remap r; 844 struct blk_io_trace_remap r;
@@ -851,8 +850,9 @@ static void blk_add_trace_remap(struct request_queue *q, struct bio *bio,
851 r.device_to = cpu_to_be32(bio->bi_bdev->bd_dev); 850 r.device_to = cpu_to_be32(bio->bi_bdev->bd_dev);
852 r.sector_from = cpu_to_be64(from); 851 r.sector_from = cpu_to_be64(from);
853 852
854 __blk_add_trace(bt, from, bio->bi_size, bio->bi_rw, BLK_TA_REMAP, 853 __blk_add_trace(bt, bio->bi_sector, bio->bi_size, bio->bi_rw,
855 !bio_flagged(bio, BIO_UPTODATE), sizeof(r), &r); 854 BLK_TA_REMAP, !bio_flagged(bio, BIO_UPTODATE),
855 sizeof(r), &r);
856} 856}
857 857
858/** 858/**