Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1010185yba; Sat, 4 May 2019 19:09:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqytO5CgyoZRBQ9/yhAUr8ojp5aOiO2A/TWN6fU35OIdJyaHDZAbzMqW5J8UqDkdj/3Yswds X-Received: by 2002:a65:60c9:: with SMTP id r9mr22496026pgv.319.1557022146228; Sat, 04 May 2019 19:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557022146; cv=none; d=google.com; s=arc-20160816; b=KGhsg98Ff3CorwMPPzv7tCFJA3VuIbUFdlwRtEGzfD/6OB6eBaE+zs5S13AHWwBjX/ eHmfOgxXBClPk/KZgQyEHRJn0m+UuLkUt+eT1A5pWABwerYGF1ctNsIrPR94LpxpkX31 IDIu9hdUcoi5HKXWNRjlgTU1WAm9snqcfPJjbNqm67vz6Di+HGdYjGkwAp/JGIfBKxWc kgCdXV5lFmAycd++sIa1VJVIyoX4o5j/Jb5Z1IMYN+4xOOa1wwgax4+2UhY8WFsGc6hh aIanjxZryYdjbS+yIV38AbRhdNsKCE1s4CaBSDZt+io4jV1bh9QtyPJi86OZNpVKBAjF jfIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ZFhA4rpBi4Ho6CrUxobqyCCZrYULhg304dSUdvW7O94=; b=NnAoZxe4iSSitJoj/gtArbtrOwKItQyIa/AyAdyqlacHqp0F6APfMZSBNYHuJzoFZk U8JfAl1T3r8jfsJ3j1bPjsicbeMxLGhGqm3nyuWEclOsA4GmcuYmmfClspZgefrzU4IR N6hOajp1c/H1j/uk5ET7C//ZAtQTpQ2CfPZyJHMF8Ocp/yADocWJqBFtxwcHOvjNtnoU n7zuIglknMPOhVde7CHhXCYBkzIokuC1Fh5vPZJHMy6FXhfEkz0f1JFIupBqjiXJ0prJ hmienFGJocADXb57WYG4CWGiIOQGoy2QhiU11KLitQPha5NEzl+hkH8T/E56dAs8omQp BqqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=VF97BCjY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj6si8816937plb.379.2019.05.04.19.08.50; Sat, 04 May 2019 19:09:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=VF97BCjY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727414AbfEECEE (ORCPT + 99 others); Sat, 4 May 2019 22:04:04 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:45677 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727308AbfEECED (ORCPT ); Sat, 4 May 2019 22:04:03 -0400 Received: by mail-pf1-f196.google.com with SMTP id e24so4853098pfi.12 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=MhUy4QCP1zApKnUUVaUucHGi2ehr71t0E9iOeaf2YeH3sN8jzxWT6oVxBL9V+FeGQt bDpQUwy7rhae70G+yNxWO3MzmzImVLYHHwcihthgAs3aa7L91Vqb9/eaxaiOkcWcBJF5 95xGMGS7gFneI38S/CyQNZZLf4nQtPnlhJEbTL5LJyma/WUTW6IUzSVvHFh4XqadYLiT qd6aOGqI20XN0Hg05lccaoTP0Ejx8XdcOQTwDDenUep1I7Kj941Ziei1o1EmCOLMhuAV sk0onk4FMOtTZ/gZM0LcnujPqwhaILN80D66Pu6620J4oIhxwwFIibrRa6pOuKwWdcow Ca/w== X-Gm-Message-State: APjAAAWoVBDlUIXk9ssBcu30cDT82OuIcTCDOa1uzbQfy8p2ZUPiBT1p 0jYSd5K2y9umBAwuy7liv326DBtKzZs= 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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