Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp641867pxb; Wed, 29 Sep 2021 06:51:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTmRzMu41QUZh7Ymt9BBN2S04l36Sb83U0ApbxGS3/98kQP1DHFyTwLPBukABW4CKup94a X-Received: by 2002:a17:902:cec3:b0:13e:5f04:309b with SMTP id d3-20020a170902cec300b0013e5f04309bmr65602plg.87.1632923461454; Wed, 29 Sep 2021 06:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632923461; cv=none; d=google.com; s=arc-20160816; b=WyhWFXGvyb2KGVt8WBdYvyqS1cdiSTLQTd4Bgih/gASIumOdZmrFhev7igUxPhjFjS m1pknuFvUNId3JlSUn7UuUhN2uq4A+AtvnXjf0e9MgCE43BvtrE5db3Pc3FrDTKUXjqW dOfnE52FwbR2bCnLlh6HpAC3UrN+07fgvecEz4Mw9xCbHX8aIiZ4xN4oZSm9VxmZBlYu D/dwWqpj+T/McxomXzs86PHXGf00PTAWIArJcKYzYqarO5IawCp7C3YogiQfdfKf+MVV VmkxnYReolTG5gDwzbSHAI9j10WR0bgsiD/sL9NOWS0IE4ELl+BIML+lqSrxticfXSgU Eqew== 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:to:from :dkim-signature; bh=W9/k7T7sAPkjXpT4DtkTYMZMBSJAcz6HDOFz9B8/NZE=; b=O9cCSalH7YuMvViYRFtfvVGkbeusLj3BAGBaXIzGKziBq+D3eqMn8Mk/6/WBrPShk4 nNKpGmLse6V4aYBk6Zw9dUDkLmyuS0s0bDRJH/78qDhdhmvmKmc22mXkN0miV3BMgNuC FlPO7Z1PyIfz+oZ1FtrOfTnmYN5eV/v6ZfxopTcWvxWG8akA4JY+goeS2ESq3+PfJ+qq wP1WH1xgRYNpqXVyxqxoa7ctJOlHpXcf0XO3rumgvL5/YKf3OBgp3Cxa9HED3JPYZWAJ NNQLHO1bZ43rtgQlchsKs8t8joPb9sW8pma1sLmD0LcLaiMYjGRQWtRbWGHTe5+itPTl GkQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aE6OgEOm; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e125si3195034pfe.83.2021.09.29.06.50.47; Wed, 29 Sep 2021 06:51:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aE6OgEOm; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 S1344273AbhI2Nv1 (ORCPT + 99 others); Wed, 29 Sep 2021 09:51:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:36008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344315AbhI2Nv1 (ORCPT ); Wed, 29 Sep 2021 09:51:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E34460551 for ; Wed, 29 Sep 2021 13:49:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632923386; bh=eTf0iQMTb0ecW1foq9M5+Q1gWkI7peNiwLztp0hy9ck=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aE6OgEOmdB0rwvQ2yPcGmhIFLXYgp6sWzn/3VLkqMT2mQgk+zu/R/vElIVoFm0I2w rir4MJiCoL5/fkX3R5mgKeSSu/ucNxgnxiW9Lb5XO8R1KmvKbynQ4UJ1kRYP43EvAS TMM4CDUaW41xIjUT0J1Hg7hd77E8dK7UAH/nsU4HV24uf05p7vTBOXlGCmyUVernu/ 7ilXrBm5FE6xLaLZk64QlQjT2SdzQFBEAmfhpWF0buEa6uYaYOc6i3YABmw+DmeQb8 GiMd39sA3T+7OH2EsNKOiZqKsdayiAf67C93PzH1qY6MtpCiHE2oNq/7JZl7RC3ltV eAkkVXlAyFSCA== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH 2/5] NFS: Ignore the directory size when marking for revalidation Date: Wed, 29 Sep 2021 09:49:41 -0400 Message-Id: <20210929134944.632844-2-trondmy@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210929134944.632844-1-trondmy@kernel.org> References: <20210929134944.632844-1-trondmy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust If we want to revalidate the directory, then just mark the change attribute as invalid. Fixes: 13c0b082b6a9 ("NFS: Replace use of NFS_INO_REVAL_PAGECACHE when checking cache validity") Signed-off-by: Trond Myklebust --- fs/nfs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 1ce1fa0a5926..f2df664db020 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1413,7 +1413,7 @@ int nfs_lookup_verify_inode(struct inode *inode, unsigned int flags) static void nfs_mark_dir_for_revalidate(struct inode *inode) { spin_lock(&inode->i_lock); - nfs_set_cache_invalid(inode, NFS_INO_REVAL_PAGECACHE); + nfs_set_cache_invalid(inode, NFS_INO_INVALID_CHANGE); spin_unlock(&inode->i_lock); } -- 2.31.1