Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp88583rwb; Thu, 12 Jan 2023 16:26:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXs4wMUvj+u7arvtJCWTbZsm4C4Mp9ZfgLIQp6NsgsKcqq8ae2D3o+oR+dj1NpEROl0Yb2Sf X-Received: by 2002:a17:90a:5993:b0:229:146b:9f63 with SMTP id l19-20020a17090a599300b00229146b9f63mr2536376pji.14.1673569572588; Thu, 12 Jan 2023 16:26:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673569572; cv=none; d=google.com; s=arc-20160816; b=EQGsb/UHUEDRFMzKXyS2GfSKNS1Z/GkFfGvYK7mBMprYUuiO7B/IGaJIl7MJ6jStI7 2xW1hWTma7Hdo9BvlFbLqdU3Vs3RA+ijbM8uYSDsdn3MDDBYIIz0sU03vRmkJkdFdirl zLEgm0RwSsrAppgJhGaKWLisTc802yC6n0BZHLaAEvAFNr51VFwDkiPybwBerbL2lMcw nlerbMHrL7cd/KjRehbJgcP91Iwc8motxgPARWpnrm94jdaW2eT58wRRnC7UfZOnrWnJ 07B6BRI659+ewVbZl5IlB2C2j9YAO0CjxbAt2a6pvZATCmmUdfhHSSMxKjS3Ck/7bw87 XBMQ== 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=bFedPtBHhlT7/1AmpCRR+OstAsOVN9WLxAoKzQ5Moe8=; b=R3ftmNKMHxfBCncDYNMTNnBKBkiAwbHyxtt4uSciLEZ8+VY1vjYhtWDZxSmF6JJq3v ACnnQc3IF6XZVEJr5BtVn1frPqekkUamXjJjjJ6q6/WXzYxRi1fzSNJSZv6qadyXdiRQ lq2TZ9migVUv5+qczkyliUYTgj6yddnczv/JFC+QA3cwzqYT7wbVT/cORSfIykrT1uHy kQ97wbur6bi2MsaqlYeVbj5sluML4Squy70EhPE+GQCs8vyIVEkJjZPVhISOQ1ijVkPh nx7KLjAbavFQBgSvEIbMVEkpp6FfpbeA91v1oXuAecO5W3CPzFUGWRF4pYgR/jL1ofrp WlCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fvxZF9yN; 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 h71-20020a63834a000000b0047c9e9084c8si7003071pge.855.2023.01.12.16.26.06; Thu, 12 Jan 2023 16:26:12 -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=fvxZF9yN; 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 S239998AbjAMAMJ (ORCPT + 50 others); Thu, 12 Jan 2023 19:12:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240087AbjAMALk (ORCPT ); Thu, 12 Jan 2023 19:11:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA7DD2196; Thu, 12 Jan 2023 16:11:36 -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 37015621E7; Fri, 13 Jan 2023 00:11:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DECEC4331E; Fri, 13 Jan 2023 00:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673568695; bh=fHoR4awBBwDobL/5OpE5v/VOKzkbb2pwjwCxM8iuNdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fvxZF9yNUhj1bZlIh2FFp/QWWmY8978MvkoYvggqN2rxsQ4WQwkuKO25w6bVb+6KY 6HVnkJfSRyecbTMq18WoPOgui5GHjdAfyXrcbkyxFfH2o9s9mrjAs6zEtVD7b2YUWV 5nh+crS9RfDP2xBD527PDNRcj6WvL/CqZDvnNJyW/hpmLZWB/e1Mv7ox0FIYUbg0XQ goRmKs1MhJCVy6LJEh+Na69LzgSGjlrraW3lpQhNEtknUMi4+Z4PbkJXbJfDKRvt6v zgOj3DyibRetiyui7PYLB5tTNmitPHDLu1Vh4cb1FIluxMNqzdPMuLIKYHKsDGqFB0 uEQ44Gx5LSv8Q== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id A66815C17DC; Thu, 12 Jan 2023 16:11:34 -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, John Ogness Subject: [PATCH rcu v2 09/20] fs: Remove CONFIG_SRCU Date: Thu, 12 Jan 2023 16:11:21 -0800 Message-Id: <20230113001132.3375334-9-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20230113001103.GA3374173@paulmck-ThinkPad-P17-Gen-1> References: <20230113001103.GA3374173@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: Reviewed-by: John Ogness --- 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