Re: [PATCH 04/10] block: implement blk_rq_pos/[cur_]sectors() and convert obvious ones

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> +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
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux