From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1CC7AC04AAA for ; Sun, 5 May 2019 02:04:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D97B620675 for ; Sun, 5 May 2019 02:04:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="VF97BCjY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727321AbfEECED (ORCPT ); Sat, 4 May 2019 22:04:03 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40884 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727055AbfEECED (ORCPT ); Sat, 4 May 2019 22:04:03 -0400 Received: by mail-pf1-f195.google.com with SMTP id u17so4867320pfn.7 for ; Sat, 04 May 2019 19:04:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZFhA4rpBi4Ho6CrUxobqyCCZrYULhg304dSUdvW7O94=; b=VF97BCjYFHEAQLpYYbW91gr3FQIXdhnksyX+tLBpQCq6IOPLNoGKQ1xLm4n+GoZEK1 ZrMI9jRmv92rcu4yERa1vUnvkrYoiSlvlVDtuk58zcMFywKQjMNULJqXEPROjvk2LhoS 3IZ2EhwORtG6UrMA7SYMD7RU/CopH/XHCGLFM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZFhA4rpBi4Ho6CrUxobqyCCZrYULhg304dSUdvW7O94=; b=CO2UcqB37qw8uYaSvojYUUgF147YSuliCw2JN6+l/C3IIYSzQwJsuzE+h5yKz9Wclg XhhSLBgdzDiG3Kk9s/ql+RYvLu/3Xc1qeeho/yuriJzblHcQsFvRLeOsQcSEonO2GLIC 71KN1z+uruNTPnJPB9wHa/5M5Ve9LzkteSA9LF0eC+TTWXGeChsUMF9bkAXq4UpuJORm h4CrCIcV4c4lrgSehp0PpH4FprQPMn6aod6vG80fiIlT0KBDdBrwKwRfwVDzuWm1BKHD HYcVA5GhzhsM6BzGjFoVorDLlJt+Nv3lXpT5fU/Z03geFA8y+/NZBT/fKrhdzCIO1SH8 A2IQ== X-Gm-Message-State: APjAAAWI75kUqdoSDMonthQp2Mv1PmhSL8ucxkS/FORGM6uQ143/+qz5 bzm7V1jmfpgOONDn1LlMqnQ7lQ== X-Google-Smtp-Source: APXvYqxVp6IA/vCCGuS3+eK5MQzvCZdy0r4p5IJ9nTyEy86IgB/c5iImNtANV5yxYN8IFPwA87P+VQ== X-Received: by 2002:aa7:91c8:: with SMTP id z8mr23430186pfa.110.1557021842475; Sat, 04 May 2019 19:04:02 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id 5sm2632829pfs.17.2019.05.04.19.03.59 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 04 May 2019 19:04:00 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org, rcu@vger.kernel.org Cc: "Joel Fernandes (Google)" , "Paul E. McKenney" , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCH] doc/rcu: Correct field_count field naming in examples Date: Sat, 4 May 2019 22:03:10 -0400 Message-Id: <20190505020328.165839-1-joel@joelfernandes.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: rcu-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: rcu@vger.kernel.org I believe this field should be called field_count instead of file_count. Correct the doc with the same. Signed-off-by: Joel Fernandes (Google) --- Documentation/RCU/listRCU.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/RCU/listRCU.txt b/Documentation/RCU/listRCU.txt index adb5a3782846..190e666fc359 100644 --- a/Documentation/RCU/listRCU.txt +++ b/Documentation/RCU/listRCU.txt @@ -175,7 +175,7 @@ otherwise, the added fields would 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; } @@ -204,7 +204,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; -- 2.21.0.1020.gf2820cf01a-goog