aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlan D. Brunelle <Alan.Brunelle@hp.com>2009-05-04 16:27:26 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-06 14:13:00 +0200
commita42aaa3bbce85ac487ad4fad5db99e8e91b7aac1 (patch)
tree1f1b4ac4335774c154213e756d10247e5eac1ded /include
parentde1d7286060430e79a1d50ad6e5fee8fe863c5f6 (diff)
downloadkernel_samsung_aries-a42aaa3bbce85ac487ad4fad5db99e8e91b7aac1.zip
kernel_samsung_aries-a42aaa3bbce85ac487ad4fad5db99e8e91b7aac1.tar.gz
kernel_samsung_aries-a42aaa3bbce85ac487ad4fad5db99e8e91b7aac1.tar.bz2
blktrace: correct remap names
This attempts to clarify names utilized during block I/O remap operations (partition, volume manager). It correctly matches up the /from/ information for both device & sector. This takes in the concept from Kosaki Motohiro and extends it to include better naming for the "device_from" field. [ 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: <49FF4FAE.3000301@hp.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/blktrace_api.h4
-rw-r--r--include/trace/block.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h
index 62763c9..82b4636 100644
--- a/include/linux/blktrace_api.h
+++ b/include/linux/blktrace_api.h
@@ -116,9 +116,9 @@ struct blk_io_trace {
* The remap event
*/
struct blk_io_trace_remap {
- __be32 device;
__be32 device_from;
- __be64 sector;
+ __be32 device_to;
+ __be64 sector_from;
};
enum {
diff --git a/include/trace/block.h b/include/trace/block.h
index 25b7068..87f6456 100644
--- a/include/trace/block.h
+++ b/include/trace/block.h
@@ -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 from, sector_t to),
- TP_ARGS(q, bio, dev, from, to));
+ sector_t to, sector_t from),
+ TP_ARGS(q, bio, dev, to, from));
#endif