History

block: move blk_rq_err_bytes to scsi

blk_rq_err_bytes is only used by the scsi midlayer, so move it there.

Christoph Hellwig committed 4 years ago

Commit 79478bf1 parent d58071a3 files · +41 −45Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/blk-mq.h+0−3
@@ -947,7 +947,6 @@ struct req_iterator { · 946 unmodified lines
947 * blk_rq_pos() : the current sector947 * blk_rq_pos() : the current sector
948 * blk_rq_bytes() : bytes left in the entire request948 * blk_rq_bytes() : bytes left in the entire request
949 * blk_rq_cur_bytes() : bytes left in the current segment949 * 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 request950 * blk_rq_sectors() : sectors left in the entire request
952 * blk_rq_cur_sectors() : sectors left in the current segment951 * blk_rq_cur_sectors() : sectors left in the current segment
953 * blk_rq_stats_sectors() : sectors of the entire request used for stats952 * 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
974unsigned int blk_rq_err_bytes(const struct request *rq);
975
976static inline unsigned int blk_rq_sectors(const struct request *rq)973static 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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t