aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/as-iosched.c2
-rw-r--r--drivers/block/cfq-iosched.c8
-rw-r--r--drivers/block/deadline-iosched.c2
-rw-r--r--drivers/block/elevator.c2
-rw-r--r--drivers/block/ll_rw_blk.c16
-rw-r--r--drivers/block/loop.c2
-rw-r--r--drivers/block/rd.c2
7 files changed, 17 insertions, 17 deletions
diff --git a/drivers/block/as-iosched.c b/drivers/block/as-iosched.c
index 5d20e4bcbc78..4081c36c8c19 100644
--- a/drivers/block/as-iosched.c
+++ b/drivers/block/as-iosched.c
@@ -1662,7 +1662,7 @@ static void as_put_request(request_queue_t *q, struct request *rq)
1662} 1662}
1663 1663
1664static int as_set_request(request_queue_t *q, struct request *rq, 1664static int as_set_request(request_queue_t *q, struct request *rq,
1665 struct bio *bio, int gfp_mask) 1665 struct bio *bio, gfp_t gfp_mask)
1666{ 1666{
1667 struct as_data *ad = q->elevator->elevator_data; 1667 struct as_data *ad = q->elevator->elevator_data;
1668 struct as_rq *arq = mempool_alloc(ad->arq_pool, gfp_mask); 1668 struct as_rq *arq = mempool_alloc(ad->arq_pool, gfp_mask);
diff --git a/drivers/block/cfq-iosched.c b/drivers/block/cfq-iosched.c
index 62a19ed0443b..94690e4d41e0 100644
--- a/drivers/block/cfq-iosched.c
+++ b/drivers/block/cfq-iosched.c
@@ -1246,7 +1246,7 @@ static void cfq_exit_io_context(struct cfq_io_context *cic)
1246} 1246}
1247 1247
1248static struct cfq_io_context * 1248static struct cfq_io_context *
1249cfq_alloc_io_context(struct cfq_data *cfqd, int gfp_mask) 1249cfq_alloc_io_context(struct cfq_data *cfqd, gfp_t gfp_mask)
1250{ 1250{
1251 struct cfq_io_context *cic = kmem_cache_alloc(cfq_ioc_pool, gfp_mask); 1251 struct cfq_io_context *cic = kmem_cache_alloc(cfq_ioc_pool, gfp_mask);
1252 1252
@@ -1341,7 +1341,7 @@ static int cfq_ioc_set_ioprio(struct io_context *ioc, unsigned int ioprio)
1341 1341
1342static struct cfq_queue * 1342static struct cfq_queue *
1343cfq_get_queue(struct cfq_data *cfqd, unsigned int key, unsigned short ioprio, 1343cfq_get_queue(struct cfq_data *cfqd, unsigned int key, unsigned short ioprio,
1344 int gfp_mask) 1344 gfp_t gfp_mask)
1345{ 1345{
1346 const int hashval = hash_long(key, CFQ_QHASH_SHIFT); 1346 const int hashval = hash_long(key, CFQ_QHASH_SHIFT);
1347 struct cfq_queue *cfqq, *new_cfqq = NULL; 1347 struct cfq_queue *cfqq, *new_cfqq = NULL;
@@ -1402,7 +1402,7 @@ out:
1402 * cfqq, so we don't need to worry about it disappearing 1402 * cfqq, so we don't need to worry about it disappearing
1403 */ 1403 */
1404static struct cfq_io_context * 1404static struct cfq_io_context *
1405cfq_get_io_context(struct cfq_data *cfqd, pid_t pid, int gfp_mask) 1405cfq_get_io_context(struct cfq_data *cfqd, pid_t pid, gfp_t gfp_mask)
1406{ 1406{
1407 struct io_context *ioc = NULL; 1407 struct io_context *ioc = NULL;
1408 struct cfq_io_context *cic; 1408 struct cfq_io_context *cic;
@@ -1877,7 +1877,7 @@ static void cfq_put_request(request_queue_t *q, struct request *rq)
1877 */ 1877 */
1878static int 1878static int
1879cfq_set_request(request_queue_t *q, struct request *rq, struct bio *bio, 1879cfq_set_request(request_queue_t *q, struct request *rq, struct bio *bio,
1880 int gfp_mask) 1880 gfp_t gfp_mask)
1881{ 1881{
1882 struct cfq_data *cfqd = q->elevator->elevator_data; 1882 struct cfq_data *cfqd = q->elevator->elevator_data;
1883 struct task_struct *tsk = current; 1883 struct task_struct *tsk = current;
diff --git a/drivers/block/deadline-iosched.c b/drivers/block/deadline-iosched.c
index 43d93155efb8..7929471d7df7 100644
--- a/drivers/block/deadline-iosched.c
+++ b/drivers/block/deadline-iosched.c
@@ -670,7 +670,7 @@ static void deadline_put_request(request_queue_t *q, struct request *rq)
670 670
671static int 671static int
672deadline_set_request(request_queue_t *q, struct request *rq, struct bio *bio, 672deadline_set_request(request_queue_t *q, struct request *rq, struct bio *bio,
673 int gfp_mask) 673 gfp_t gfp_mask)
674{ 674{
675 struct deadline_data *dd = q->elevator->elevator_data; 675 struct deadline_data *dd = q->elevator->elevator_data;
676 struct deadline_rq *drq; 676 struct deadline_rq *drq;
diff --git a/drivers/block/elevator.c b/drivers/block/elevator.c
index 8de77416bd2f..55621d5c5774 100644
--- a/drivers/block/elevator.c
+++ b/drivers/block/elevator.c
@@ -558,7 +558,7 @@ struct request *elv_former_request(request_queue_t *q, struct request *rq)
558} 558}
559 559
560int elv_set_request(request_queue_t *q, struct request *rq, struct bio *bio, 560int elv_set_request(request_queue_t *q, struct request *rq, struct bio *bio,
561 int gfp_mask) 561 gfp_t gfp_mask)
562{ 562{
563 elevator_t *e = q->elevator; 563 elevator_t *e = q->elevator;
564 564
diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c
index fc12d019b19d..0af73512b9a8 100644
--- a/drivers/block/ll_rw_blk.c
+++ b/drivers/block/ll_rw_blk.c
@@ -1654,13 +1654,13 @@ static int blk_init_free_list(request_queue_t *q)
1654 1654
1655static int __make_request(request_queue_t *, struct bio *); 1655static int __make_request(request_queue_t *, struct bio *);
1656 1656
1657request_queue_t *blk_alloc_queue(int gfp_mask) 1657request_queue_t *blk_alloc_queue(gfp_t gfp_mask)
1658{ 1658{
1659 return blk_alloc_queue_node(gfp_mask, -1); 1659 return blk_alloc_queue_node(gfp_mask, -1);
1660} 1660}
1661EXPORT_SYMBOL(blk_alloc_queue); 1661EXPORT_SYMBOL(blk_alloc_queue);
1662 1662
1663request_queue_t *blk_alloc_queue_node(int gfp_mask, int node_id) 1663request_queue_t *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
1664{ 1664{
1665 request_queue_t *q; 1665 request_queue_t *q;
1666 1666
@@ -1791,7 +1791,7 @@ static inline void blk_free_request(request_queue_t *q, struct request *rq)
1791 1791
1792static inline struct request * 1792static inline struct request *
1793blk_alloc_request(request_queue_t *q, int rw, struct bio *bio, 1793blk_alloc_request(request_queue_t *q, int rw, struct bio *bio,
1794 int priv, int gfp_mask) 1794 int priv, gfp_t gfp_mask)
1795{ 1795{
1796 struct request *rq = mempool_alloc(q->rq.rq_pool, gfp_mask); 1796 struct request *rq = mempool_alloc(q->rq.rq_pool, gfp_mask);
1797 1797
@@ -1889,7 +1889,7 @@ static void freed_request(request_queue_t *q, int rw, int priv)
1889 * Returns !NULL on success, with queue_lock *not held*. 1889 * Returns !NULL on success, with queue_lock *not held*.
1890 */ 1890 */
1891static struct request *get_request(request_queue_t *q, int rw, struct bio *bio, 1891static struct request *get_request(request_queue_t *q, int rw, struct bio *bio,
1892 int gfp_mask) 1892 gfp_t gfp_mask)
1893{ 1893{
1894 struct request *rq = NULL; 1894 struct request *rq = NULL;
1895 struct request_list *rl = &q->rq; 1895 struct request_list *rl = &q->rq;
@@ -2026,7 +2026,7 @@ static struct request *get_request_wait(request_queue_t *q, int rw,
2026 return rq; 2026 return rq;
2027} 2027}
2028 2028
2029struct request *blk_get_request(request_queue_t *q, int rw, int gfp_mask) 2029struct request *blk_get_request(request_queue_t *q, int rw, gfp_t gfp_mask)
2030{ 2030{
2031 struct request *rq; 2031 struct request *rq;
2032 2032
@@ -2258,7 +2258,7 @@ EXPORT_SYMBOL(blk_rq_unmap_user);
2258 * @gfp_mask: memory allocation flags 2258 * @gfp_mask: memory allocation flags
2259 */ 2259 */
2260int blk_rq_map_kern(request_queue_t *q, struct request *rq, void *kbuf, 2260int blk_rq_map_kern(request_queue_t *q, struct request *rq, void *kbuf,
2261 unsigned int len, unsigned int gfp_mask) 2261 unsigned int len, gfp_t gfp_mask)
2262{ 2262{
2263 struct bio *bio; 2263 struct bio *bio;
2264 2264
@@ -3310,7 +3310,7 @@ void exit_io_context(void)
3310 * but since the current task itself holds a reference, the context can be 3310 * but since the current task itself holds a reference, the context can be
3311 * used in general code, so long as it stays within `current` context. 3311 * used in general code, so long as it stays within `current` context.
3312 */ 3312 */
3313struct io_context *current_io_context(int gfp_flags) 3313struct io_context *current_io_context(gfp_t gfp_flags)
3314{ 3314{
3315 struct task_struct *tsk = current; 3315 struct task_struct *tsk = current;
3316 struct io_context *ret; 3316 struct io_context *ret;
@@ -3341,7 +3341,7 @@ EXPORT_SYMBOL(current_io_context);
3341 * 3341 *
3342 * This is always called in the context of the task which submitted the I/O. 3342 * This is always called in the context of the task which submitted the I/O.
3343 */ 3343 */
3344struct io_context *get_io_context(int gfp_flags) 3344struct io_context *get_io_context(gfp_t gfp_flags)
3345{ 3345{
3346 struct io_context *ret; 3346 struct io_context *ret;
3347 ret = current_io_context(gfp_flags); 3347 ret = current_io_context(gfp_flags);
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index b35e08876dd4..96c664af8d06 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -881,7 +881,7 @@ loop_init_xfer(struct loop_device *lo, struct loop_func_table *xfer,
881static int loop_clr_fd(struct loop_device *lo, struct block_device *bdev) 881static int loop_clr_fd(struct loop_device *lo, struct block_device *bdev)
882{ 882{
883 struct file *filp = lo->lo_backing_file; 883 struct file *filp = lo->lo_backing_file;
884 int gfp = lo->old_gfp_mask; 884 gfp_t gfp = lo->old_gfp_mask;
885 885
886 if (lo->lo_state != Lo_bound) 886 if (lo->lo_state != Lo_bound)
887 return -ENXIO; 887 return -ENXIO;
diff --git a/drivers/block/rd.c b/drivers/block/rd.c
index 145c1fbffe01..68c60a5bcdab 100644
--- a/drivers/block/rd.c
+++ b/drivers/block/rd.c
@@ -348,7 +348,7 @@ static int rd_open(struct inode *inode, struct file *filp)
348 struct block_device *bdev = inode->i_bdev; 348 struct block_device *bdev = inode->i_bdev;
349 struct address_space *mapping; 349 struct address_space *mapping;
350 unsigned bsize; 350 unsigned bsize;
351 int gfp_mask; 351 gfp_t gfp_mask;
352 352
353 inode = igrab(bdev->bd_inode); 353 inode = igrab(bdev->bd_inode);
354 rd_bdev[unit] = bdev; 354 rd_bdev[unit] = bdev;