blk_rq_err_bytes is only used by the scsi midlayer, so move it there.
Showing the changes to include (1 of 3 files). Show all
Unified · Split
| @@ -947,7 +947,6 @@ struct req_iterator { · 946 unmodified lines | |||
| 947 | * blk_rq_pos() : the current sector | 947 | * blk_rq_pos() : the current sector |
| 948 | * blk_rq_bytes() : bytes left in the entire request | 948 | * blk_rq_bytes() : bytes left in the entire request |
| 949 | * blk_rq_cur_bytes() : bytes left in the current segment | 949 | * blk_rq_cur_bytes() : bytes left in the current segment |
| 950 | * blk_rq_err_bytes() : bytes left till the next error boundary | ||
| 951 | * blk_rq_sectors() : sectors left in the entire request | 950 | * blk_rq_sectors() : sectors left in the entire request |
| 952 | * blk_rq_cur_sectors() : sectors left in the current segment | 951 | * blk_rq_cur_sectors() : sectors left in the current segment |
| 953 | * blk_rq_stats_sectors() : sectors of the entire request used for stats | 952 | * blk_rq_stats_sectors() : sectors of the entire request used for stats |
| @@ -971,8 +970,6 @@ static inline int blk_rq_cur_bytes(const struct request *rq) · 17 unmodified lines | |||
| 971 | return bio_iovec(rq->bio).bv_len; | 970 | return bio_iovec(rq->bio).bv_len; |
| 972 | } | 971 | } |
| 973 | 972 | ||
| 974 | unsigned int blk_rq_err_bytes(const struct request *rq); | ||
| 975 | |||
| 976 | static inline unsigned int blk_rq_sectors(const struct request *rq) | 973 | static inline unsigned int blk_rq_sectors(const struct request *rq) |
| 977 | { | 974 | { |
| 978 | return blk_rq_bytes(rq) >> SECTOR_SHIFT; | 975 | return blk_rq_bytes(rq) >> SECTOR_SHIFT; |