cls_api: Convert to idr_alloc_u32
"Linux Kernel Mailing List" <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.head |
|---|---|
| Message-ID | <[email protected]> |
Web: https://git.kernel.org/torvalds/c/9ce75499ac140af71f0003322c99b6e58f39dfbe Commit: 9ce75499ac140af71f0003322c99b6e58f39dfbe Parent: 339913a8be8a98fca5c72f5552f0316ff6d5e701 Refname: refs/heads/master Author: Matthew Wilcox <[email protected]> AuthorDate: Tue Feb 6 16:37:52 2018 -0500 Committer: Matthew Wilcox <[email protected]> CommitDate: Tue Feb 6 16:40:33 2018 -0500 cls_api: Convert to idr_alloc_u32 Use the new helper. Signed-off-by: Matthew Wilcox <[email protected]> --- net/sched/cls_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html