lkml.org 
[lkml]   [2009]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 04/10] block: implement blk_rq_pos/[cur_]sectors() and convert obvious ones
>> +static inline sector_t blk_rq_pos(struct request *rq)
> ^
> const?
>> +{
>> + return rq->hard_sector;
>> +}
>> +
>> extern unsigned int blk_rq_bytes(struct request *rq);
>> extern unsigned int blk_rq_cur_bytes(struct request *rq);
>>
>> +static inline unsigned int blk_rq_sectors(struct request *rq)
> ^
> const?
>> +{
>> + return rq->hard_nr_sectors;
>> +}
>> +
>> +static inline unsigned int blk_rq_cur_sectors(struct request *rq)
> ^
> const?
>> +{
>> + return rq->hard_cur_sectors;
>> +}
>> +

consts and acked-by added.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2009-04-29 12:23    [W:0.459 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site