mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
idr: Rename idr_for_each_entry_ext
Most places in the kernel that we need to distinguish functions by the type of their arguments, we use '_ul' as a suffix for the unsigned long variant, not '_ext'. Also add kernel-doc. Signed-off-by: Matthew Wilcox <[email protected]>
This commit is contained in:
parent
460488c58c
commit
7a4575778f
3 changed files with 55 additions and 33 deletions
|
|
@ -124,7 +124,7 @@ static int tcf_dump_walker(struct tcf_idrinfo *idrinfo, struct sk_buff *skb,
|
|||
|
||||
s_i = cb->args[0];
|
||||
|
||||
idr_for_each_entry_ext(idr, p, id) {
|
||||
idr_for_each_entry_ul(idr, p, id) {
|
||||
index++;
|
||||
if (index < s_i)
|
||||
continue;
|
||||
|
|
@ -181,7 +181,7 @@ static int tcf_del_walker(struct tcf_idrinfo *idrinfo, struct sk_buff *skb,
|
|||
if (nla_put_string(skb, TCA_KIND, ops->kind))
|
||||
goto nla_put_failure;
|
||||
|
||||
idr_for_each_entry_ext(idr, p, id) {
|
||||
idr_for_each_entry_ul(idr, p, id) {
|
||||
ret = __tcf_idr_release(p, false, true);
|
||||
if (ret == ACT_P_DELETED) {
|
||||
module_put(ops->owner);
|
||||
|
|
@ -351,7 +351,7 @@ void tcf_idrinfo_destroy(const struct tc_action_ops *ops,
|
|||
int ret;
|
||||
unsigned long id = 1;
|
||||
|
||||
idr_for_each_entry_ext(idr, p, id) {
|
||||
idr_for_each_entry_ul(idr, p, id) {
|
||||
ret = __tcf_idr_release(p, false, true);
|
||||
if (ret == ACT_P_DELETED)
|
||||
module_put(ops->owner);
|
||||
|
|
|
|||
Loading…
Reference in a new issue