projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
339913a
)
cls_api: Convert to idr_alloc_u32
author
Matthew Wilcox
<mawilcox@microsoft.com>
Tue, 6 Feb 2018 21:37:52 +0000
(16:37 -0500)
committer
Matthew Wilcox
<mawilcox@microsoft.com>
Tue, 6 Feb 2018 21:40:33 +0000
(16:40 -0500)
Use the new helper.
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
net/sched/cls_api.c
patch
|
blob
|
history
diff --git
a/net/sched/cls_api.c
b/net/sched/cls_api.c
index 802ac9d1eaab2f7428c69629337d9dfab99fcf7b..2bc1bc23d42ecd85c1387d6408944d8a7a69c7d4 100644
(file)
--- 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;