Skip to contentSkip to conversation

block: blk_rq_err_sectors cleanup

PATCH In review Gui Jianfeng 2 participants 2 messages Dec 30, 2009 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: blk_rq_err_sectors cleanup

blk_rq_err_sectors() seems useless, get rid of it.

---
 include/linux/blkdev.h |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
include/linux/blkdev.h +0 -6
index 221cecd..fcbb9e2 100644
@@ -843,7 +843,6 @@ static inline void blk_run_address_space(struct address_space *mapping)
  * 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)
 {
@@ -872,11 +871,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.
  */
Signature · 1 line
1.5.4.rc3
#1 lore raw
Quoted 1 line · Gui Jianfeng

blk_rq_err_sectors() seems useless, get rid of it.

Indeed, it's currently unused. Applied.

Signature · 1 line
Jens Axboe