From: Matthew Wilcox Date: Tue, 6 Feb 2018 21:37:52 +0000 (-0500) Subject: cls_api: Convert to idr_alloc_u32 X-Git-Tag: Ubuntu-5.2.0-15.16~4994^2~10 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9ce75499ac140af71f0003322c99b6e58f39dfbe;p=mirror_ubuntu-eoan-kernel.git cls_api: Convert to idr_alloc_u32 Use the new helper. Signed-off-by: Matthew Wilcox --- diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 802ac9d1eaab..2bc1bc23d42e 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;