From: SeongJae Park Date: Mon, 6 Jan 2020 20:07:57 +0000 (+0100) Subject: doc/RCU/listRCU: Fix typos in a example code snippets X-Git-Tag: v5.7-rc1~183^2^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c50a871409dc664f2f89d11926d9a6b8ab7f5b07;p=thirdparty%2Fkernel%2Flinux.git doc/RCU/listRCU: Fix typos in a example code snippets Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney --- diff --git a/Documentation/RCU/listRCU.rst b/Documentation/RCU/listRCU.rst index 55d2b30db481c..e768f56e8fa32 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;