diff options
| author | Tejun Heo <[email protected]> | 2009-05-07 22:24:38 +0900 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2009-05-11 09:50:53 +0200 |
| commit | 5b93629b4509c03ffa87a9316412fedf6f58cb37 (patch) | |
| tree | ad5ceda3f718361b8df3057b4f9edcc79aa4cd9d /tools/perf/scripts/python | |
| parent | c3a4d78c580de4edc9ef0f7c59812fb02ceb037f (diff) | |
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 <[email protected]>
Acked-by: Geert Uytterhoeven <[email protected]>
Acked-by: Stephen Rothwell <[email protected]>
Tested-by: Grant Likely <[email protected]>
Acked-by: Grant Likely <[email protected]>
Ackec-by: Sergei Shtylyov <[email protected]>
Cc: Bartlomiej Zolnierkiewicz <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: James Bottomley <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions