diff options
author | Tejun Heo <tj@kernel.org> | 2009-05-07 09:24:42 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-05-11 03:50:55 -0400 |
commit | b0790410300abaaf4f25f702803beff701baebf1 (patch) | |
tree | 63d8fcd38e4cd5927fd83e482e306480bb68a689 /drivers/scsi/osd | |
parent | 2e46e8b27aa57c6bd34b3102b40ee4d0144b4fab (diff) |
block: cleanup rq->data_len usages
With recent unification of fields, it's now guaranteed that
rq->data_len always equals blk_rq_bytes(). Convert all non-IDE direct
users to accessors. IDE will be converted in a separate patch.
Boaz: spotted incorrect data_len/resid_len conversion in osd.
[ Impact: convert direct rq->data_len usages to blk_rq_bytes() ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Pete Zaitcev <zaitcev@redhat.com>
Cc: Eric Moore <Eric.Moore@lsi.com>
Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
Cc: Darrick J. Wong <djwong@us.ibm.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Eric Moore <Eric.Moore@lsi.com>
Cc: Boaz Harrosh <bharrosh@panasas.com>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/scsi/osd')
-rw-r--r-- | drivers/scsi/osd/osd_initiator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/osd/osd_initiator.c b/drivers/scsi/osd/osd_initiator.c index 2a5f0777148d..d178a8b799ec 100644 --- a/drivers/scsi/osd/osd_initiator.c +++ b/drivers/scsi/osd/osd_initiator.c | |||
@@ -1299,7 +1299,7 @@ int osd_finalize_request(struct osd_request *or, | |||
1299 | return ret; | 1299 | return ret; |
1300 | } | 1300 | } |
1301 | OSD_DEBUG("out bytes=%llu (bytes_req=%u)\n", | 1301 | OSD_DEBUG("out bytes=%llu (bytes_req=%u)\n", |
1302 | _LLU(or->out.total_bytes), or->out.req->data_len); | 1302 | _LLU(or->out.total_bytes), blk_rq_bytes(or->out.req)); |
1303 | } | 1303 | } |
1304 | if (or->in.bio) { | 1304 | if (or->in.bio) { |
1305 | ret = blk_rq_append_bio(or->request->q, or->in.req, or->in.bio); | 1305 | ret = blk_rq_append_bio(or->request->q, or->in.req, or->in.bio); |
@@ -1308,7 +1308,7 @@ int osd_finalize_request(struct osd_request *or, | |||
1308 | return ret; | 1308 | return ret; |
1309 | } | 1309 | } |
1310 | OSD_DEBUG("in bytes=%llu (bytes_req=%u)\n", | 1310 | OSD_DEBUG("in bytes=%llu (bytes_req=%u)\n", |
1311 | _LLU(or->in.total_bytes), or->in.req->data_len); | 1311 | _LLU(or->in.total_bytes), blk_rq_bytes(or->in.req)); |
1312 | } | 1312 | } |
1313 | 1313 | ||
1314 | or->out.pad_buff = sg_out_pad_buffer; | 1314 | or->out.pad_buff = sg_out_pad_buffer; |