Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146987
b: refs/heads/master
c: 9fd8d0e
h: refs/heads/master
i:
  146985: 3f6547b
  146983: 7c0a715
v: v3
  • Loading branch information
Tejun Heo authored and Jens Axboe committed Apr 28, 2009
1 parent a466c82 commit 340043e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9eb55b030c4b3227334ee4482402096cd1d1a6fe
refs/heads/master: 9fd8d0e1bcb848257968d9a7d73ca4d890ea8bd1
16 changes: 12 additions & 4 deletions trunk/include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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 *);
Expand Down

0 comments on commit 340043e

Please sign in to comment.