Tejun Heo 5b93629b45 block: implement blk_rq_pos/[cur_]sectors() and convert obvious ones
Implement accessors - blk_rq_pos(), blk_rq_sectors() and
blk_rq_cur_sectors() which return rq->hard_sector, rq->hard_nr_sectors
and rq->hard_cur_sectors respectively and convert direct references of
the said fields to the accessors.

This is in preparation of request data length handling cleanup.

Geert	: suggested adding const to struct request * parameter to accessors
Sergei	: spotted error in patch description

[ Impact: cleanup ]

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Tested-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Ackec-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Borislav Petkov <petkovbb@googlemail.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-05-11 09:50:53 +02:00
..
2009-04-01 21:42:24 +02:00
2009-04-15 12:10:13 +02:00
2009-05-11 09:50:53 +02:00
2009-04-07 08:12:38 +02:00
2005-04-16 15:20:36 -07:00
2009-04-28 08:14:51 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2009-04-28 08:14:52 +02:00
2009-04-28 07:37:28 +02:00
2009-04-07 08:12:38 +02:00
2005-04-16 15:20:36 -07:00
2009-04-28 08:14:50 +02:00
2009-03-26 21:15:27 +01:00
2009-04-28 08:14:51 +02:00
2009-05-11 09:50:53 +02:00
2009-04-24 08:54:21 +02:00
2008-10-21 07:48:11 -04:00