Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp166575rwl; Wed, 4 Jan 2023 17:07:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXue5812JnVjlHlg3SabSPFLU16RC8Xf1f90XmaIAVnPnf7SOpSK/3jlwsydpxnGqqWycOml X-Received: by 2002:a17:902:d589:b0:189:7f28:43a7 with SMTP id k9-20020a170902d58900b001897f2843a7mr71972692plh.29.1672880861259; Wed, 04 Jan 2023 17:07:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672880861; cv=none; d=google.com; s=arc-20160816; b=zfFluZKQsKksYcUjKfnRt7SJtXhVyBKaar7Eb6TuldLEim5DVqlKIJHUR3ZCubHgGl poR07YoOsYBsANeQHkRG9ALe9zLQb00d9XVoI5kdIiYTBIxqI665qMfd5+eIFfFvRycY /BQwpxudGcZ0EdzoIlPwrohug/0F30+ImdNQmISsdvC8YThfsT1zR6CkKwcIQ9e9rrvE T0+5Qm/a5wH9oc1gHQXd0nE/0t5tNcRH3vskY3gdWqGYRdpeE8bpQTzfL4Xfd7t946Sw YgjsdYFkHE+D6NnoY790C3k+LbDw4SWFDHQ/SzDp0X77TP0YQsVGfTAKBczTBHWIlFm+ qmIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Pp8fImL5wWYnF3ozjdkjhDnktNlMG04fQdGHkyDu1Cc=; b=P3VyuQQnxWht5qSiR10iJsr9BhN1ZI3cSf8zGfDNdubrO0LzyYXjFjppvd0P5VIiDf DAp/CeChXSQFIz5W/2/9BaK5sNro9fMUxPNm8mz1wv40XOBQd27/NDcxg9mnM6EAp4t2 ml98Y39Th4XXDdq+Zk129aIsQlGK9+NRiOQv08yH0gidT+zVdKLyQ8qusJXvOt2+hIIa 4a3NOROg/1npkrWt0IGWwNJlQNTiYo0xRZsI2GyFJ65kEfXyBZC/03lnGqDx0pidJtS7 M74Zx4D+q6k1AeLwKqm3HEssOAXxxSsebZDubxcvCThB/Bz8idv8on9WnIFhKru0OYYY 9rww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=blU9blNC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a635310000000b00479391226edsi19014082pgb.328.2023.01.04.17.07.30; Wed, 04 Jan 2023 17:07:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=blU9blNC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240731AbjAEAnU (ORCPT + 56 others); Wed, 4 Jan 2023 19:43:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240727AbjAEAix (ORCPT ); Wed, 4 Jan 2023 19:38:53 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17D2BDE4; Wed, 4 Jan 2023 16:38:23 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F1CD7618BF; Thu, 5 Jan 2023 00:38:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6A89C43332; Thu, 5 Jan 2023 00:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672879095; bh=XMX0rNISyJ3jdJLoqDXy9UsPPAVZ6pFivTvukmA1Yy0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=blU9blNCFeH4+MvoJnMJK2XWTi40fgcvMY1ZZGJCka/5+Rh+1E+L/Ian43TBJEuGq DMi5UvOsUHaWIkfgb7k/mOe6b7avNFVzalMFKsDtGOjIsBosFw8GNIuaH7TdSpyik+ dfvW/iY99Z+zLSodcCngB77xOBlB7w+rGdGzZVkNf6dXCPw/9OKZDWj5+VzOmhtEV7 NQMa+wXpsOA5rDjRs1WgYQePd+gDLEI1u9ZSqNZAD85H1NwMZ3vNbMirGYbgIkuYbK Zc1R6IGO7j6bMXnch4c97JlJrs/jE8ss9C8TKB3tchu771TDVs0IwqSuLkvx/wuH69 VU+S+ehWHamTQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id E41B15C1CBA; Wed, 4 Jan 2023 16:38:14 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Jeff Layton , Chuck Lever , Alexander Viro , linux-fsdevel@vger.kernel.org Subject: [PATCH rcu 25/27] fs: Remove CONFIG_SRCU Date: Wed, 4 Jan 2023 16:38:11 -0800 Message-Id: <20230105003813.1770367-25-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20230105003759.GA1769545@paulmck-ThinkPad-P17-Gen-1> References: <20230105003759.GA1769545@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the SRCU Kconfig option is unconditionally selected, there is no longer any point in conditional compilation based on CONFIG_SRCU. Therefore, remove the #ifdef and throw away the #else clause. Signed-off-by: Paul E. McKenney Cc: Jeff Layton Cc: Chuck Lever Cc: Alexander Viro Cc: --- fs/locks.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index 8f01bee177159..1909a9de242c8 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1889,7 +1889,6 @@ int generic_setlease(struct file *filp, long arg, struct file_lock **flp, } EXPORT_SYMBOL(generic_setlease); -#if IS_ENABLED(CONFIG_SRCU) /* * Kernel subsystems can register to be notified on any attempt to set * a new lease with the lease_notifier_chain. This is used by (e.g.) nfsd @@ -1923,30 +1922,6 @@ void lease_unregister_notifier(struct notifier_block *nb) } EXPORT_SYMBOL_GPL(lease_unregister_notifier); -#else /* !IS_ENABLED(CONFIG_SRCU) */ -static inline void -lease_notifier_chain_init(void) -{ -} - -static inline void -setlease_notifier(long arg, struct file_lock *lease) -{ -} - -int lease_register_notifier(struct notifier_block *nb) -{ - return 0; -} -EXPORT_SYMBOL_GPL(lease_register_notifier); - -void lease_unregister_notifier(struct notifier_block *nb) -{ -} -EXPORT_SYMBOL_GPL(lease_unregister_notifier); - -#endif /* IS_ENABLED(CONFIG_SRCU) */ - /** * vfs_setlease - sets a lease on an open file * @filp: file pointer -- 2.31.1.189.g2e36527f23