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
947947 * blk_rq_pos() : the current sector
948948 * blk_rq_bytes() : bytes left in the entire request
949949 * blk_rq_cur_bytes() : bytes left in the current segment
950− * blk_rq_err_bytes() : bytes left till the next error boundary
951950 * blk_rq_sectors() : sectors left in the entire request
952951 * blk_rq_cur_sectors() : sectors left in the current segment
953952 * 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
971970 return bio_iovec(rq->bio).bv_len;
972971 }
973972
974−unsigned int blk_rq_err_bytes(const struct request *rq);
975−
976973 static inline unsigned int blk_rq_sectors(const struct request *rq)
977974 {
978975 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