aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
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 /block/blk-core.c
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 'block/blk-core.c')
-rw-r--r--block/blk-core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 07ab75403e1a..a5f747a8312e 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1275,7 +1275,7 @@ static inline void blk_partition_remap(struct bio *bio)
1275 bio->bi_bdev = bdev->bd_contains; 1275 bio->bi_bdev = bdev->bd_contains;
1276 1276
1277 trace_block_remap(bdev_get_queue(bio->bi_bdev), bio, 1277 trace_block_remap(bdev_get_queue(bio->bi_bdev), bio,
1278 bdev->bd_dev, bio->bi_sector, 1278 bdev->bd_dev,
1279 bio->bi_sector - p->start_sect); 1279 bio->bi_sector - p->start_sect);
1280 } 1280 }
1281} 1281}
@@ -1444,8 +1444,7 @@ static inline void __generic_make_request(struct bio *bio)
1444 goto end_io; 1444 goto end_io;
1445 1445
1446 if (old_sector != -1) 1446 if (old_sector != -1)
1447 trace_block_remap(q, bio, old_dev, bio->bi_sector, 1447 trace_block_remap(q, bio, old_dev, old_sector);
1448 old_sector);
1449 1448
1450 trace_block_bio_queue(q, bio); 1449 trace_block_bio_queue(q, bio);
1451 1450