aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorEzequiel Garcia <elezegarcia@gmail.com>2012-11-10 04:39:44 -0500
committerJens Axboe <axboe@kernel.dk>2012-11-10 04:41:13 -0500
commitc304a51bf42a7ce48f430a371e1213472c89e13d (patch)
tree687807afd01b9b19bb3ecb7c6d3f786a89112fb1 /block
parentbee0393cc12b6d8f10e884e555a095e050e0b2b9 (diff)
block: use NUMA_NO_NODE instead of -1
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com> Modified by me to cover blk_init_queue() as well. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c4
-rw-r--r--block/genhd.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 3c95c4d6e31a..ee0e5cafa859 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -549,7 +549,7 @@ void blk_exit_rl(struct request_list *rl)
549 549
550struct request_queue *blk_alloc_queue(gfp_t gfp_mask) 550struct request_queue *blk_alloc_queue(gfp_t gfp_mask)
551{ 551{
552 return blk_alloc_queue_node(gfp_mask, -1); 552 return blk_alloc_queue_node(gfp_mask, NUMA_NO_NODE);
553} 553}
554EXPORT_SYMBOL(blk_alloc_queue); 554EXPORT_SYMBOL(blk_alloc_queue);
555 555
@@ -660,7 +660,7 @@ EXPORT_SYMBOL(blk_alloc_queue_node);
660 660
661struct request_queue *blk_init_queue(request_fn_proc *rfn, spinlock_t *lock) 661struct request_queue *blk_init_queue(request_fn_proc *rfn, spinlock_t *lock)
662{ 662{
663 return blk_init_queue_node(rfn, lock, -1); 663 return blk_init_queue_node(rfn, lock, NUMA_NO_NODE);
664} 664}
665EXPORT_SYMBOL(blk_init_queue); 665EXPORT_SYMBOL(blk_init_queue);
666 666
diff --git a/block/genhd.c b/block/genhd.c
index 6cace663a80e..2a6fdf539a69 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -1245,7 +1245,7 @@ EXPORT_SYMBOL(blk_lookup_devt);
1245 1245
1246struct gendisk *alloc_disk(int minors) 1246struct gendisk *alloc_disk(int minors)
1247{ 1247{
1248 return alloc_disk_node(minors, -1); 1248 return alloc_disk_node(minors, NUMA_NO_NODE);
1249} 1249}
1250EXPORT_SYMBOL(alloc_disk); 1250EXPORT_SYMBOL(alloc_disk);
1251 1251