* [PATCH] block: blk_rq_err_sectors cleanup
@ 2009-12-30 3:30 Gui Jianfeng
2009-12-30 7:39 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Gui Jianfeng @ 2009-12-30 3:30 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux kernel mailing list
blk_rq_err_sectors() seems useless, get rid of it.
Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
---
include/linux/blkdev.h | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 221cecd..fcbb9e2 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -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.
*/
--
1.5.4.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] block: blk_rq_err_sectors cleanup
2009-12-30 3:30 [PATCH] block: blk_rq_err_sectors cleanup Gui Jianfeng
@ 2009-12-30 7:39 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2009-12-30 7:39 UTC (permalink / raw)
To: Gui Jianfeng; +Cc: linux kernel mailing list
On Wed, Dec 30 2009, Gui Jianfeng wrote:
> blk_rq_err_sectors() seems useless, get rid of it.
Indeed, it's currently unused. Applied.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-30 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-30 3:30 [PATCH] block: blk_rq_err_sectors cleanup Gui Jianfeng
2009-12-30 7:39 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox