doc/RCU/listRCU: Fix typos in a example code snippets

Signed-off-by: SeongJae Park <sjpark@amazon.de>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
SeongJae Park 2020-01-06 21:07:57 +01:00 коммит произвёл Paul E. McKenney
Родитель d18c265fbf
Коммит c50a871409
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -226,7 +226,7 @@ need to be filled in)::
list_for_each_entry(e, list, list) { list_for_each_entry(e, list, list) {
if (!audit_compare_rule(rule, &e->rule)) { if (!audit_compare_rule(rule, &e->rule)) {
e->rule.action = newaction; e->rule.action = newaction;
e->rule.file_count = newfield_count; e->rule.field_count = newfield_count;
write_unlock(&auditsc_lock); write_unlock(&auditsc_lock);
return 0; return 0;
} }
@ -255,7 +255,7 @@ RCU (*read-copy update*) its name. The RCU code is as follows::
return -ENOMEM; return -ENOMEM;
audit_copy_rule(&ne->rule, &e->rule); audit_copy_rule(&ne->rule, &e->rule);
ne->rule.action = newaction; ne->rule.action = newaction;
ne->rule.file_count = newfield_count; ne->rule.field_count = newfield_count;
list_replace_rcu(&e->list, &ne->list); list_replace_rcu(&e->list, &ne->list);
call_rcu(&e->rcu, audit_free_rule); call_rcu(&e->rcu, audit_free_rule);
return 0; return 0;