blktrace: from-sector redundant in trace_block_remap, cleanup
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 11 May 2009 07:06:46 +0000 (15:06 +0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 11 May 2009 11:30:24 +0000 (13:30 +0200)
The last argument of block_remap prober is the original sector
before remap, so it should be 'from', not 'to'.

[ Impact: clean up ]

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: "Alan D. Brunelle" <Alan.Brunelle@hp.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
LKML-Reference: <4A07CE86.5090301@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/trace/block.h

index 8ac945b..5b12efa 100644 (file)
@@ -70,7 +70,7 @@ DECLARE_TRACE(block_split,
 
 DECLARE_TRACE(block_remap,
        TP_PROTO(struct request_queue *q, struct bio *bio, dev_t dev,
-                sector_t to),
-             TP_ARGS(q, bio, dev, to));
+                sector_t from),
+             TP_ARGS(q, bio, dev, from));
 
 #endif