This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug testsuite/10618] Unable to find member 'nr_sectors' for struct request in 2.6.31-rc9
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 9 Sep 2009 09:08:11 -0000
- Subject: [Bug testsuite/10618] Unable to find member 'nr_sectors' for struct request in 2.6.31-rc9
- References: <20090909081844.10618.wenji.huang@oracle.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.