Message ID | 20240122123845.3822570-10-dhowells@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-33037-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2542714dyb; Mon, 22 Jan 2024 04:44:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8X7GaSBWMUP/CMPx+AyBPY2ov1ziym8VvG/057BZKVcRlJMUOEaCY6MXr6dtPhocOsm+W X-Received: by 2002:a17:907:778c:b0:a2f:6053:2ab7 with SMTP id ky12-20020a170907778c00b00a2f60532ab7mr5355564ejc.11.1705927461282; Mon, 22 Jan 2024 04:44:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705927461; cv=pass; d=google.com; s=arc-20160816; b=yJu1agBXlDyH0jMxaL+k0M0H4xHMwk0lda6ZcLdjIrC6szZpeA2SeyxAUG1FtsaaxY Wm9tk9ZFl4Ijg3xFlYzylFEBP7Hc72guBpRl+5XKc6rIKXyfaJgKcCVeLDOggX7OQHOh OklO4+hlkPc8rT1HllEQtc4Ec3NR1e37TOl/Onywuv5WVPYgrBsFybG0KS8wu6eerjlr SIYVK4i+MAB6j8b+YFLc3rSNky9/1yctgKuhuIrWexQQrllY64Rl2hjnqs0UHMzcka6K 119VEDrjM/Sya2qSwrt18EFEXZ7/Tqv629NZf8tsBxo6jkGFqiY26QCdNQZi7qVIsBIz qn2A== 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33037-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ay14-20020a170906d28e00b00a3040087fb6si986498ejb.977.2024.01.22.04.44.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 04:44:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33037-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33037-ouuuleilei=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 am.mirrors.kernel.org (Postfix) with ESMTPS id E0F751F245E7 for <ouuuleilei@gmail.com>; Mon, 22 Jan 2024 12:44:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 563A63FB14; Mon, 22 Jan 2024 12:39:23 +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 <linux-kernel@vger.kernel.org>; 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 <dhowells@redhat.com> To: Christian Brauner <christian@brauner.io> Cc: David Howells <dhowells@redhat.com>, Jeff Layton <jlayton@kernel.org>, Matthew Wilcox <willy@infradead.org>, 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 <viro@zeniv.linux.org.uk>, Marc Dionne <marc.dionne@auristor.com> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788794593578711488 X-GMAIL-MSGID: 1788794593578711488 |
Series |
netfs, afs, cifs, cachefiles, erofs: Miscellaneous fixes
|
|
Commit Message
David Howells
Jan. 22, 2024, 12:38 p.m. UTC
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 <viro@zeniv.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
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,