mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-12 05:48:39 +08:00
block: remove blk_end_request_cur
This function is not used anywhere in the kernel. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
314fe91b4a
commit
fa1a15c08e
@ -2857,24 +2857,6 @@ void blk_end_request_all(struct request *rq, int error)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(blk_end_request_all);
|
EXPORT_SYMBOL(blk_end_request_all);
|
||||||
|
|
||||||
/**
|
|
||||||
* blk_end_request_cur - Helper function to finish the current request chunk.
|
|
||||||
* @rq: the request to finish the current chunk for
|
|
||||||
* @error: %0 for success, < %0 for 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
|
|
||||||
*/
|
|
||||||
bool blk_end_request_cur(struct request *rq, int error)
|
|
||||||
{
|
|
||||||
return blk_end_request(rq, error, blk_rq_cur_bytes(rq));
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(blk_end_request_cur);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __blk_end_request - Helper function for drivers to complete the request.
|
* __blk_end_request - Helper function for drivers to complete the request.
|
||||||
* @rq: the request being processed
|
* @rq: the request being processed
|
||||||
|
@ -1126,7 +1126,6 @@ extern void blk_finish_request(struct request *rq, int error);
|
|||||||
extern bool blk_end_request(struct request *rq, int error,
|
extern bool blk_end_request(struct request *rq, int error,
|
||||||
unsigned int nr_bytes);
|
unsigned int nr_bytes);
|
||||||
extern void blk_end_request_all(struct request *rq, int error);
|
extern void blk_end_request_all(struct request *rq, int error);
|
||||||
extern bool blk_end_request_cur(struct request *rq, int error);
|
|
||||||
extern bool __blk_end_request(struct request *rq, int error,
|
extern bool __blk_end_request(struct request *rq, int error,
|
||||||
unsigned int nr_bytes);
|
unsigned int nr_bytes);
|
||||||
extern void __blk_end_request_all(struct request *rq, int error);
|
extern void __blk_end_request_all(struct request *rq, int error);
|
||||||
|
Loading…
Reference in New Issue
Block a user