Skip to content

Commit

Permalink
block: use NUMA_NO_NODE instead of -1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ezequiel Garcia authored and Jens Axboe committed Nov 10, 2012
1 parent bee0393 commit c304a51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ void blk_exit_rl(struct request_list *rl)

struct request_queue *blk_alloc_queue(gfp_t gfp_mask)
{
return blk_alloc_queue_node(gfp_mask, -1);
return blk_alloc_queue_node(gfp_mask, NUMA_NO_NODE);
}
EXPORT_SYMBOL(blk_alloc_queue);

Expand Down Expand Up @@ -660,7 +660,7 @@ EXPORT_SYMBOL(blk_alloc_queue_node);

struct request_queue *blk_init_queue(request_fn_proc *rfn, spinlock_t *lock)
{
return blk_init_queue_node(rfn, lock, -1);
return blk_init_queue_node(rfn, lock, NUMA_NO_NODE);
}
EXPORT_SYMBOL(blk_init_queue);

Expand Down
2 changes: 1 addition & 1 deletion block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ EXPORT_SYMBOL(blk_lookup_devt);

struct gendisk *alloc_disk(int minors)
{
return alloc_disk_node(minors, -1);
return alloc_disk_node(minors, NUMA_NO_NODE);
}
EXPORT_SYMBOL(alloc_disk);

Expand Down

0 comments on commit c304a51

Please sign in to comment.