Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp297297rdb; Mon, 22 Jan 2024 04:43:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbWHrqYOml+18w6j/bFK6/B6CR0bYbIbHu7EQy7f1B/noiZtITM1NpAqScMZNPQcygijs3 X-Received: by 2002:a05:622a:18d:b0:42a:33ad:4415 with SMTP id s13-20020a05622a018d00b0042a33ad4415mr4821064qtw.111.1705927427693; Mon, 22 Jan 2024 04:43:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705927427; cv=pass; d=google.com; s=arc-20160816; b=PRUJu9+JP2UwgYO5O5mgwSNLHqu2w/M15jq0A+aypaHVimIy+jcY4lwnggziK0nILR xKRA83sc5PdDdL2FLqjDi2u/KUajEpW9CLRWz+fcrqU7PL5xQjtSv4ryoGzHpkKxA1tG cSPxpoRlQEgbnXU6MbbeoXQWQTrXK/hZhx8JTFeIOmYZKlt3JgWnAHd7b5tgnJJ1SPtx fTeA0H4pJ77PRimc9G0Objbo0EbEHw5ZWJSO+N+Di75Ehidnx6KbHaeSBt9QHy8R+Kh5 0A5uWZO/h25/dsFMz9chR5lhJCDkvaGJ5wfTKdCc1DoDVkEFr+vLPVVm9tzx0RfO3Zxy O2EQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=4H/QyaTEJT6yM0W34T+DHhl8mPiadWYAfCey1J2x+wk=; fh=ji2KzSHNcfxZY2Sk7vSDYpralpWpy8nozLxVXGWh9Iw=; b=Kz6oKeFzZDeBG2i1OTEYxFBuJBoDU/H9g1CEz+CLwI3oH8L0F5wxvXT1FurAhtG75Z aWkWKnsvFx/7fx9vmb8Gn/HbNyWGixHWz2q+MdO4X5CmDYq0I5bKh1d6ipzaoG8zA1O+ UVbLeeP/0Jf16X4sKgaLdSK7hQeqKitq21X3Vj4QrAWpAeT80nZCRfVfEX83aPf56Tc5 fiJm1ztggyxsa8c7weFLHseFa8Itpehl9KDfAsA4S3hNAIlqfOMNkAqZs4tHq9FXIqHZ ce+FDuIYnaB6n7wN4aoiywTPfQ8bf3mwC4T91+vCzZk/j8ytcD/nFZTszSj3Mf1elmWw zq7Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=d+5JFY3M; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-33037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33037-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v9-20020ac85789000000b0042a1c8ffe11si5499136qta.35.2024.01.22.04.43.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 04:43:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=d+5JFY3M; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-33037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33037-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 734081C2332B for ; Mon, 22 Jan 2024 12:43:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85A023F8D3; Mon, 22 Jan 2024 12:39:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="d+5JFY3M" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 031B93EA78 for ; Mon, 22 Jan 2024 12:39:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705927160; cv=none; b=PtOBDbcIkCwCRkYIzS2Vqj0qUXeBpHmy++Lvzl40X8evEroEXmk6OSC1SnUhfdB+8XEvo6A1WbISQSqeUR4j9k3EOrnz+qWRMPv1WjcsUMkBBIqHeVtnrMcX0Nb0DDjtU1YbNjhnTTNz0tEjp9XvEFI8KZQm06Hy15/j0vikQ8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705927160; c=relaxed/simple; bh=u1NZ5oJ45qo+iUmBVeXgQl020jMPO7hETF1JUMYSA/M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QM3KC5ifKKBFrhZDEBGRZKCrzKVK7eNZqvbXp9WZDmZO4IbmDCy7ywj1T97Eeja7Bh+lzevUM5ZSzdveuJERqTbVDii1uNEtKlZhfS9dTc2wdB9/OZpAp5i9M1c16FY/FJ6vPgfZdJ8vG2CtQC4oCCFMmAOBcG2Tz8cj9SNzM50= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=d+5JFY3M; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705927158; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4H/QyaTEJT6yM0W34T+DHhl8mPiadWYAfCey1J2x+wk=; b=d+5JFY3MtD/FiJVUgAEu0WCeEk2QopeYN1nSQT072BetzTu+AouA3UwyI6lTRaVTQ0ye7U LFIWzXqILPD/CBt4fom0suRpVDIYg9zznX0ARSrrsJEwq5ON4EU8NSj2UMLXd+TcLhMrC6 S/sipEVNT3cfLxJUlrZ8WHLct4KoSHM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-491-8WwqpJQRMMC-Y1cHcAnhdA-1; Mon, 22 Jan 2024 07:39:17 -0500 X-MC-Unique: 8WwqpJQRMMC-Y1cHcAnhdA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2CE6688D286; Mon, 22 Jan 2024 12:39:16 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id E7049C0FDCC; Mon, 22 Jan 2024 12:39:13 +0000 (UTC) From: David Howells To: Christian Brauner Cc: David Howells , Jeff Layton , Matthew Wilcox , netfs@lists.linux.dev, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Alexander Viro , Marc Dionne Subject: [PATCH 09/10] afs: Remove afs_dynroot_d_revalidate() as it is redundant Date: Mon, 22 Jan 2024 12:38:42 +0000 Message-ID: <20240122123845.3822570-10-dhowells@redhat.com> In-Reply-To: <20240122123845.3822570-1-dhowells@redhat.com> References: <20240122123845.3822570-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 Remove afs_dynroot_d_revalidate() as it is redundant as all it does is return 1 and the caller assumes that if the op is not given. Suggested-by: Alexander Viro Signed-off-by: David Howells cc: Marc Dionne cc: linux-afs@lists.infradead.org cc: linux-fsdevel@vger.kernel.org --- fs/afs/dynroot.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/fs/afs/dynroot.c b/fs/afs/dynroot.c index d3bc4a2d7085..c4d2711e20ad 100644 --- a/fs/afs/dynroot.c +++ b/fs/afs/dynroot.c @@ -258,16 +258,7 @@ const struct inode_operations afs_dynroot_inode_operations = { .lookup = afs_dynroot_lookup, }; -/* - * Dirs in the dynamic root don't need revalidation. - */ -static int afs_dynroot_d_revalidate(struct dentry *dentry, unsigned int flags) -{ - return 1; -} - const struct dentry_operations afs_dynroot_dentry_operations = { - .d_revalidate = afs_dynroot_d_revalidate, .d_delete = always_delete_dentry, .d_release = afs_d_release, .d_automount = afs_d_automount,