diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2018-02-06 16:37:52 -0500 |
---|---|---|
committer | Matthew Wilcox <mawilcox@microsoft.com> | 2018-02-06 16:40:33 -0500 |
commit | 9ce75499ac140af71f0003322c99b6e58f39dfbe (patch) | |
tree | 0a08d4c90258c360037d16b1340dbe8da69df534 /net | |
parent | 339913a8be8a98fca5c72f5552f0316ff6d5e701 (diff) | |
download | op-kernel-dev-9ce75499ac140af71f0003322c99b6e58f39dfbe.zip op-kernel-dev-9ce75499ac140af71f0003322c99b6e58f39dfbe.tar.gz |
cls_api: Convert to idr_alloc_u32
Use the new helper.
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/cls_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 802ac9d..2bc1bc2 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -381,8 +381,8 @@ static int tcf_block_insert(struct tcf_block *block, struct net *net, struct tcf_net *tn = net_generic(net, tcf_net_id); int err; - err = idr_alloc_ext(&tn->idr, block, NULL, block_index, - block_index + 1, GFP_KERNEL); + err = idr_alloc_u32(&tn->idr, block, &block_index, block_index, + GFP_KERNEL); if (err) return err; block->index = block_index; |