Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp130949rdb; Mon, 22 Jan 2024 14:36:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgudKtLaLL7bNYsSf9ftL8IHvRez9UcdY0hfrTs8anjUxBqqM6GuU8QLT18BEAazABO45J X-Received: by 2002:a05:620a:3623:b0:783:76af:bcf8 with SMTP id da35-20020a05620a362300b0078376afbcf8mr4175341qkb.74.1705963006030; Mon, 22 Jan 2024 14:36:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705963006; cv=pass; d=google.com; s=arc-20160816; b=M614kJME0YRUNK2NZHLekVZP6psStBj+1RSvk2dBW/KhVltAl14Hku2n/CYGRUi2Oy VfqE5r99Z3gwgiISGJGfkUbOJiEoCpTVUUwFUuz0MJxy9e1XQiLhMoPUodbZb1f7MyJQ sznqrQfdA5sov77LMROTFXcYEaBbxJs2wB+yuO+O908XUl0gmDo3N0OQctW20m2wwOtA aF+E664ViIaKWxdhhgebJ+eS//yj5NWtQhCcmDqpccmVAqCo0abzxJi0H+5D6PyGWeS/ APm4Un/+zToFY14/KrJ9d58qkH6Q2o+NamdEfoEsb52fwUSXeYdOgIa5SodTxm/uJedM RBJw== 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=kiYBwCOjAUu41K6b3ai3QU1cHNIrpF9fp6ukBxItiwGOkDDaF/6it8B2TjzY++Uf+H yI3tuu7MQNWcSdte73ZTAhDATrBHXbpwt+hksJmupNEBK+FbvNvtj1tyo9LPLK75a78p ZQDV9UCkuX1DlCXp4c6glKwgcFECog0rlc6cj4gV95XZWBs0Bn9Y17qRiSo6CaC8k8xA oPzntW78aTe4ewSRV2Ub+X+kqmZPKnZ0TQoKuGh+vPQyBfpBSmGQx1J76xI1/5UVhzSH e4ZSUMWr2INPvpXk6zS4m0aLAb/P4YxYGpwASZb2znMMFs2Mkor3kDycWVVtPr2wEcZ4 teEA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a7jsWXxM; 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-nfs+bounces-1269-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1269-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 j18-20020a37ef12000000b0078330b1c9f7si6609022qkk.458.2024.01.22.14.36.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 14:36:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1269-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=a7jsWXxM; 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-nfs+bounces-1269-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1269-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 C1EBB1C20E59 for ; Mon, 22 Jan 2024 22:36:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B30044BAB9; Mon, 22 Jan 2024 22:33:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="a7jsWXxM" X-Original-To: linux-nfs@vger.kernel.org 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 34A984C3B9 for ; Mon, 22 Jan 2024 22:33:05 +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=1705962786; cv=none; b=pfjJUQYN01Q+d0GSqb+DquRCMKVIJWF444OjbaKDH142f/Q5i/m424/vw5zk5ZCJXFcowSwQ6mVX4XfN6NC4aKmdSOlw6HxRfb8Dq2y33aXKDGAjBBiIpPqJYnvAIhMMuIsaxCW3sVTAegAuksqOdYloZ2/EnIbi5tpl99GHNwA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705962786; c=relaxed/simple; bh=u1NZ5oJ45qo+iUmBVeXgQl020jMPO7hETF1JUMYSA/M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W24SWqnh2EW4QXQKui5bvCljukZzNYSyB6iAcXPXipRjKCTyn/lXjrMddcy3za5EMJAJAhrRngcYWr2ReWZ8f3ERCgVMVijuaWtZDiORfDY6Gjo/R9Qd7N+TvpdN1vmfhKsedYKz+hExYKsQI+yfFkZsZ9Dh7YTTxyIwEVbHn3I= 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=a7jsWXxM; 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=1705962784; 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=a7jsWXxMF9S6/wVlvkgRhnbZZf4Tepll56ndYZZA2jOUio9APcErXR9gX86GIVrIqtg2rA aff+a7Hw1szC6RDEKEkHL2Grm9/l9A+iDp8g0IGkhEsRcOmyJIJphw/qtnk/MLePLiYGnt DiV9QtewnDW6ojeVPSyXO2hTspnUELc= 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-473--HGPYFG7OMq08y4wHZqsJA-1; Mon, 22 Jan 2024 17:33:01 -0500 X-MC-Unique: -HGPYFG7OMq08y4wHZqsJA-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 1F87A185A780; Mon, 22 Jan 2024 22:33:00 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0FAB4C0FDCA; Mon, 22 Jan 2024 22:32:57 +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 v2 09/10] afs: Remove afs_dynroot_d_revalidate() as it is redundant Date: Mon, 22 Jan 2024 22:32:22 +0000 Message-ID: <20240122223230.4000595-10-dhowells@redhat.com> In-Reply-To: <20240122223230.4000595-1-dhowells@redhat.com> References: <20240122223230.4000595-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-nfs@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,