Message ID | 20200330023248.164994-18-joel@joelfernandes.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=KWal=5P=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AE6A313A4 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 30 Mar 2020 02:34:16 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 72AFA206DB for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 30 Mar 2020 02:34:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="e/QROEfb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 72AFA206DB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B60FF6B0081; Sun, 29 Mar 2020 22:33:49 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id AED6C6B0082; Sun, 29 Mar 2020 22:33:49 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9432B6B0083; Sun, 29 Mar 2020 22:33:49 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0069.hostedemail.com [216.40.44.69]) by kanga.kvack.org (Postfix) with ESMTP id 6E0296B0081 for <linux-mm@kvack.org>; Sun, 29 Mar 2020 22:33:49 -0400 (EDT) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 7C269180AD81A for <linux-mm@kvack.org>; Mon, 30 Mar 2020 02:33:49 +0000 (UTC) X-FDA: 76650458178.30.comb08_5b92af30a435a X-Spam-Summary: 2,0,0,2929d9d7c511b58c,d41d8cd98f00b204,joel@joelfernandes.org,,RULES_HIT:41:355:379:541:800:960:966:973:988:989:1260:1311:1314:1345:1359:1437:1515:1534:1539:1567:1711:1714:1730:1747:1777:1792:2196:2199:2393:2559:2562:3138:3139:3140:3141:3142:3622:3871:3876:4321:4385:5007:6261:6653:6742:10004:11026:11658:11914:12043:12297:12438:12517:12519:12555:12895:13069:13141:13230:13311:13357:13894:14384:14394:14721:21080:21444:21451:21627:21990:30012:30054:30070,0,RBL:209.85.160.194:@joelfernandes.org:.lbl8.mailshell.net-66.100.201.201 62.2.0.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: comb08_5b92af30a435a X-Filterd-Recvd-Size: 3852 Received: from mail-qt1-f194.google.com (mail-qt1-f194.google.com [209.85.160.194]) by imf27.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Mon, 30 Mar 2020 02:33:49 +0000 (UTC) Received: by mail-qt1-f194.google.com with SMTP id i3so13899421qtv.8 for <linux-mm@kvack.org>; Sun, 29 Mar 2020 19:33:48 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=nfe8DrKWUp4DznQJ7QwjX25sDztlI0Q1Kzc2EbjhIfI=; b=e/QROEfb5RGTR9IB9T4I6da+BeTQWc1g0g4Y4IB6QTSmalMQrHGbXLRXYVq0YbVzhs tP2sTlESNLvrtJivJplrhzgd3CeNe5CxFhf+jkbqQ4hFWDiT7AJDlWveUX3cErsFRXs6 BxPFwUArDnqMXIc2Ozny0JZzGurm8NA5J/8uE= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=nfe8DrKWUp4DznQJ7QwjX25sDztlI0Q1Kzc2EbjhIfI=; b=HyuYHxsOxntvF0xYgQ4dc4OCJNriqBi+IGm1lien1FxQfEf5tohzdZwsYPjJo3rRjB 0sR4GBjikMG2WaEynMhN2Ny4Np7RbhUTx0LkxujqhEbbjY3vUqLRDDgO5y/RkF6DpdBd rIpMgZ3uYYHhxOoFz69vzNmJ7xp9WzGGlcBWI3IyKEnkELXxHSPmXCDCXtyZJYK/J8HF IkiU6AOxUEIbixbyOINP9NiV+/tpymuy801gvlFogJjmCMujJvU9KkAR1RAaWYpOij6X l4i+gWSzo6QPHBmwoVYFR4no/gTHYtXc+GSLcB9Y9x/WvoS+1rqA1uCwsIzAeY7w/OIO WL6w== X-Gm-Message-State: ANhLgQ3IbtT8hl1fszZrLdZRj8wpB+mKkZgHnvTyyf3geofFtnW0NTI8 3yxaIvPYNqoH0HAKI0kRXbC+hw== X-Google-Smtp-Source: ADFU+vte8V+MFLpGv25SbcL8/a36+3V3dZDn+RHDRlNYMBkkicXPxgyi30CKdwoHh7ULy/2SwK0YqQ== X-Received: by 2002:ac8:922:: with SMTP id t31mr9208234qth.95.1585535628345; Sun, 29 Mar 2020 19:33:48 -0700 (PDT) Received: from joelaf.cam.corp.google.com ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id q15sm10030625qtj.83.2020.03.29.19.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Mar 2020 19:33:48 -0700 (PDT) From: "Joel Fernandes (Google)" <joel@joelfernandes.org> To: linux-kernel@vger.kernel.org Cc: "Joel Fernandes (Google)" <joel@joelfernandes.org>, Andrew Morton <akpm@linux-foundation.org>, Ingo Molnar <mingo@redhat.com>, Josh Triplett <josh@joshtriplett.org>, Lai Jiangshan <jiangshanlai@gmail.com>, linux-mm@kvack.org, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, "Paul E. McKenney" <paulmck@kernel.org>, "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>, rcu@vger.kernel.org, Steven Rostedt <rostedt@goodmis.org>, "Uladzislau Rezki (Sony)" <urezki@gmail.com> Subject: [PATCH 17/18] rcu/tree: Simplify is_vmalloc_addr expression Date: Sun, 29 Mar 2020 22:32:47 -0400 Message-Id: <20200330023248.164994-18-joel@joelfernandes.org> X-Mailer: git-send-email 2.26.0.rc2.310.g2932bb562d-goog In-Reply-To: <20200330023248.164994-1-joel@joelfernandes.org> References: <20200330023248.164994-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
kfree_rcu() improvements for -rcu dev
|
expand
|
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 56c9e102a901d..311d216c7faa7 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -3104,7 +3104,7 @@ kvfree_call_rcu_add_ptr_to_bulk(struct kfree_rcu_cpu *krcp, void *ptr) return false; lockdep_assert_held(&krcp->lock); - idx = !is_vmalloc_addr(ptr) ? 0:1; + idx = !!is_vmalloc_addr(ptr); /* Check if a new block is required. */ if (!krcp->bkvhead[idx] ||
No code change, small refactor. Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> --- kernel/rcu/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)