This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug testsuite/10618] Unable to find member 'nr_sectors' for struct request in 2.6.31-rc9


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]