aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/ll_rw_blk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/ll_rw_blk.c')
-rw-r--r--drivers/block/ll_rw_blk.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c
index baedac522945..0f64ee7d8d27 100644
--- a/drivers/block/ll_rw_blk.c
+++ b/drivers/block/ll_rw_blk.c
@@ -1652,13 +1652,13 @@ static int blk_init_free_list(request_queue_t *q)
1652 1652
1653static int __make_request(request_queue_t *, struct bio *); 1653static int __make_request(request_queue_t *, struct bio *);
1654 1654
1655request_queue_t *blk_alloc_queue(int gfp_mask) 1655request_queue_t *blk_alloc_queue(gfp_t gfp_mask)
1656{ 1656{
1657 return blk_alloc_queue_node(gfp_mask, -1); 1657 return blk_alloc_queue_node(gfp_mask, -1);
1658} 1658}
1659EXPORT_SYMBOL(blk_alloc_queue); 1659EXPORT_SYMBOL(blk_alloc_queue);
1660 1660
1661request_queue_t *blk_alloc_queue_node(int gfp_mask, int node_id) 1661request_queue_t *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
1662{ 1662{
1663 request_queue_t *q; 1663 request_queue_t *q;
1664 1664
@@ -1787,7 +1787,7 @@ static inline void blk_free_request(request_queue_t *q, struct request *rq)
1787} 1787}
1788 1788
1789static inline struct request * 1789static inline struct request *
1790blk_alloc_request(request_queue_t *q, int rw, struct bio *bio, int gfp_mask) 1790blk_alloc_request(request_queue_t *q, int rw, struct bio *bio, gfp_t gfp_mask)
1791{ 1791{
1792 struct request *rq = mempool_alloc(q->rq.rq_pool, gfp_mask); 1792 struct request *rq = mempool_alloc(q->rq.rq_pool, gfp_mask);
1793 1793
@@ -1885,7 +1885,7 @@ static void freed_request(request_queue_t *q, int rw)
1885 * Returns !NULL on success, with queue_lock *not held*. 1885 * Returns !NULL on success, with queue_lock *not held*.
1886 */ 1886 */
1887static struct request *get_request(request_queue_t *q, int rw, struct bio *bio, 1887static struct request *get_request(request_queue_t *q, int rw, struct bio *bio,
1888 int gfp_mask) 1888 gfp_t gfp_mask)
1889{ 1889{
1890 struct request *rq = NULL; 1890 struct request *rq = NULL;
1891 struct request_list *rl = &q->rq; 1891 struct request_list *rl = &q->rq;
@@ -2019,7 +2019,7 @@ static struct request *get_request_wait(request_queue_t *q, int rw,
2019 return rq; 2019 return rq;
2020} 2020}
2021 2021
2022struct request *blk_get_request(request_queue_t *q, int rw, int gfp_mask) 2022struct request *blk_get_request(request_queue_t *q, int rw, gfp_t gfp_mask)
2023{ 2023{
2024 struct request *rq; 2024 struct request *rq;
2025 2025
@@ -2251,7 +2251,7 @@ EXPORT_SYMBOL(blk_rq_unmap_user);
2251 * @gfp_mask: memory allocation flags 2251 * @gfp_mask: memory allocation flags
2252 */ 2252 */
2253int blk_rq_map_kern(request_queue_t *q, struct request *rq, void *kbuf, 2253int blk_rq_map_kern(request_queue_t *q, struct request *rq, void *kbuf,
2254 unsigned int len, unsigned int gfp_mask) 2254 unsigned int len, gfp_t gfp_mask)
2255{ 2255{
2256 struct bio *bio; 2256 struct bio *bio;
2257 2257
@@ -3393,7 +3393,7 @@ void exit_io_context(void)
3393 * but since the current task itself holds a reference, the context can be 3393 * but since the current task itself holds a reference, the context can be
3394 * used in general code, so long as it stays within `current` context. 3394 * used in general code, so long as it stays within `current` context.
3395 */ 3395 */
3396struct io_context *current_io_context(int gfp_flags) 3396struct io_context *current_io_context(gfp_t gfp_flags)
3397{ 3397{
3398 struct task_struct *tsk = current; 3398 struct task_struct *tsk = current;
3399 struct io_context *ret; 3399 struct io_context *ret;
@@ -3424,7 +3424,7 @@ EXPORT_SYMBOL(current_io_context);
3424 * 3424 *
3425 * This is always called in the context of the task which submitted the I/O. 3425 * This is always called in the context of the task which submitted the I/O.
3426 */ 3426 */
3427struct io_context *get_io_context(int gfp_flags) 3427struct io_context *get_io_context(gfp_t gfp_flags)
3428{ 3428{
3429 struct io_context *ret; 3429 struct io_context *ret;
3430 ret = current_io_context(gfp_flags); 3430 ret = current_io_context(gfp_flags);