From 340043ebe887307218675b6c43888bcfc6464c73 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Tue, 28 Apr 2009 13:06:04 +0900 Subject: [PATCH] --- yaml --- r: 146987 b: refs/heads/master c: 9fd8d0e1bcb848257968d9a7d73ca4d890ea8bd1 h: refs/heads/master i: 146985: 3f6547bfacf9def82aa3bec6fbd75aafdad18897 146983: 7c0a71575af3108a1a2ff95f366a976ab986eeb3 v: v3 --- [refs] | 2 +- trunk/include/linux/blkdev.h | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 4891d4d54026..e899c12dea1b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9eb55b030c4b3227334ee4482402096cd1d1a6fe +refs/heads/master: 9fd8d0e1bcb848257968d9a7d73ca4d890ea8bd1 diff --git a/trunk/include/linux/blkdev.h b/trunk/include/linux/blkdev.h index 12c545e2737c..3a5b1bd6582c 100644 --- a/trunk/include/linux/blkdev.h +++ b/trunk/include/linux/blkdev.h @@ -903,10 +903,14 @@ static inline void blk_end_request_all(struct request *rq, int error) * * Description: * Complete the current consecutively mapped chunk from @rq. + * + * Return: + * %false - we are done with this request + * %true - still buffers pending for this request */ -static inline void blk_end_request_cur(struct request *rq, int error) +static inline bool blk_end_request_cur(struct request *rq, int error) { - blk_end_request(rq, error, rq->hard_cur_sectors << 9); + return blk_end_request(rq, error, rq->hard_cur_sectors << 9); } /** @@ -952,10 +956,14 @@ static inline void __blk_end_request_all(struct request *rq, int error) * Description: * Complete the current consecutively mapped chunk from @rq. Must * be called with queue lock held. + * + * Return: + * %false - we are done with this request + * %true - still buffers pending for this request */ -static inline void __blk_end_request_cur(struct request *rq, int error) +static inline bool __blk_end_request_cur(struct request *rq, int error) { - __blk_end_request(rq, error, rq->hard_cur_sectors << 9); + return __blk_end_request(rq, error, rq->hard_cur_sectors << 9); } extern void blk_complete_request(struct request *);