Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bd3f988 authored by Gui Jianfeng's avatar Gui Jianfeng Committed by Jens Axboe
Browse files

block: blk_rq_err_sectors cleanup



blk_rq_err_sectors() seems useless, get rid of it.

Signed-off-by: default avatarGui Jianfeng <guijianfeng@cn.fujitsu.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent e79e95db
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -845,7 +845,6 @@ static inline struct request_queue *bdev_get_queue(struct block_device *bdev)
 * blk_rq_err_bytes()		: bytes left till the next error boundary
 * blk_rq_sectors()		: sectors left in the entire request
 * blk_rq_cur_sectors()		: sectors left in the current segment
 * blk_rq_err_sectors()		: sectors left till the next error boundary
 */
static inline sector_t blk_rq_pos(const struct request *rq)
{
@@ -874,11 +873,6 @@ static inline unsigned int blk_rq_cur_sectors(const struct request *rq)
	return blk_rq_cur_bytes(rq) >> 9;
}

static inline unsigned int blk_rq_err_sectors(const struct request *rq)
{
	return blk_rq_err_bytes(rq) >> 9;
}

/*
 * Request issue related functions.
 */