[Bug testsuite/10618] Unable to find member 'nr_sectors' for struct request in 2.6.31-rc9
wenji dot huang at oracle dot com
sourceware-bugzilla@sourceware.org
Wed Sep 9 09:09:00 GMT 2009
------- Additional Comments From wenji dot huang at oracle dot com 2009-09-09 09:08 -------
Some accessors are provided like blk_rq_sectors, blk_rq_bytes
static inline unsigned int blk_rq_sectors(const struct request *rq)
{
return blk_rq_bytes(rq) >> 9;
}
static inline unsigned int blk_rq_bytes(const struct request *rq)
{
return rq->__data_len;
}
Maybe to replace $rq->nr_sectors with $rq->data_len >> 9 or to use
embedded function can do same job.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10618
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are on the CC list for the bug, or are watching someone who is.
More information about the Systemtap
mailing list