summaryrefslogtreecommitdiffstats
path: root/Documentation/RCU
diff options
context:
space:
mode:
authorSeongJae Park <sjpark@amazon.de>2020-01-06 21:07:57 +0100
committerPaul E. McKenney <paulmck@kernel.org>2020-02-27 07:03:13 -0800
commitc50a871409dc664f2f89d11926d9a6b8ab7f5b07 (patch)
treed9e8ff41f75f33341c571d73f4f33de5f6ca7272 /Documentation/RCU
parentd18c265fbf19de7716e6e3054b752594133b0739 (diff)
downloadlinux-c50a871409dc664f2f89d11926d9a6b8ab7f5b07.tar.bz2
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>
Diffstat (limited to 'Documentation/RCU')
-rw-r--r--Documentation/RCU/listRCU.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/RCU/listRCU.rst b/Documentation/RCU/listRCU.rst
index 55d2b30db481..e768f56e8fa3 100644
--- a/Documentation/RCU/listRCU.rst
+++ b/Documentation/RCU/listRCU.rst
@@ -226,7 +226,7 @@ need to be filled in)::
list_for_each_entry(e, list, list) {
if (!audit_compare_rule(rule, &e->rule)) {
e->rule.action = newaction;
- e->rule.file_count = newfield_count;
+ e->rule.field_count = newfield_count;
write_unlock(&auditsc_lock);
return 0;
}
@@ -255,7 +255,7 @@ RCU (*read-copy update*) its name. The RCU code is as follows::
return -ENOMEM;
audit_copy_rule(&ne->rule, &e->rule);
ne->rule.action = newaction;
- ne->rule.file_count = newfield_count;
+ ne->rule.field_count = newfield_count;
list_replace_rcu(&e->list, &ne->list);
call_rcu(&e->rcu, audit_free_rule);
return 0;