Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4431183pxb; Mon, 21 Feb 2022 21:24:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKPxuKZhfcDyo7BZvmRwjGV56QnpaRCX9eJwWbsYcGawgmE38vLeCQB5O6qqXjqwILePul X-Received: by 2002:a05:6a00:140a:b0:4e0:54d5:d01 with SMTP id l10-20020a056a00140a00b004e054d50d01mr22976212pfu.20.1645507459884; Mon, 21 Feb 2022 21:24:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645507459; cv=none; d=google.com; s=arc-20160816; b=rvvdgGGyW6CTs9r5VXlkhheMSanS2xoDCqYgvV3MkoNr5Avu31MfvKtdsZ2GhYkeCJ KMDh8t2j2HWEMVWm2VFIQocVGQTLVZPNqnHg9LcuVh0PN89RD8dGIDUaXc7x2BjAWsuZ BkN47fFlv5ZuDajuMhfd5ZOvBKFc18gD2Nyes/crYOZzxvpxeduR6fzaFfAri6FYNkSu AIrEbgopkc20+tKjAr9ZzYxnGWSqgja6RKqCV449onw/j3/EnfujMjLYhKcF1BEf5HuL DRq8rgr5G+rvlLDtNHBx5jzw47QgnTq9ZR2D9c4BTURpJEPEFj8K/HJCAbPn7Dh0hlP9 7XoQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4+7ahXzViV5npmmrU2ZhYlZWE5owjQqxl9CCGAlY6QM=; b=JziOt3nh8ramH9Z/CfZ0iqOZQ3FrF6+Q3oncliSEkUOUI2O4tU2UAhdT1y8VBMekxq XrO/uWY5J62vKr66BAxH5JEjdbuSEKZP8FqElJNi3MxMkBPzQ9UqnZCQjGNYJvcTNxV4 Do1ism87BTwwn2IFxI6QwkqaDh+qdm1qXOMoqMjK4cZ9OxLG4+zNHVMVwdDdTOJFedGz Gdww1VqCNQFbUmAluD5NJfByPMjQjDI+zOAZyqBEVzrViQWYe3moUnKJdUZw5UyMOND1 sEh0E9VgNQTu1PTYZ8OMSghW5/lwSOod+GbI6zeuV6IgKo7FoU0pG578YOq3XxS5sqJZ u6Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CbRMKrhA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x6si9621820pgl.767.2022.02.21.21.24.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:24:19 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CbRMKrhA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BF75810215C; Mon, 21 Feb 2022 20:54:59 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349326AbiBUJig (ORCPT + 99 others); Mon, 21 Feb 2022 04:38:36 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349708AbiBUJa1 (ORCPT ); Mon, 21 Feb 2022 04:30:27 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19C2325C59; Mon, 21 Feb 2022 01:13:12 -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 sin.source.kernel.org (Postfix) with ESMTPS id F3861CE0E86; Mon, 21 Feb 2022 09:13:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAD92C339C8; Mon, 21 Feb 2022 09:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645434786; bh=hUv1vw7+SG1GUc+ciH6Lke2YWRLHdxDggbqlY0eKXdo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CbRMKrhAvz44L25CsWeU4MxIC8OijPRIZGSVLPKLXWZh/fcKGmPZLG0zOaX34pYX5 r3Oh/dmgy/qnPfgQPxV04iBHbJv8dVdjX3QYov++XseUtOQJrNOs2mZVuUI9FScJq5 mDWzybyjCVGL0FQk9cjwjFDI3HoZUv28oOatbvtY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Trond Myklebust , Anna Schumaker Subject: [PATCH 5.15 131/196] NFS: Remove an incorrect revalidation in nfs4_update_changeattr_locked() Date: Mon, 21 Feb 2022 09:49:23 +0100 Message-Id: <20220221084935.311257381@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084930.872957717@linuxfoundation.org> References: <20220221084930.872957717@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Trond Myklebust commit 9d047bf68fe8cdb4086deaf4edd119731a9481ed upstream. In nfs4_update_changeattr_locked(), we don't need to set the NFS_INO_REVAL_PAGECACHE flag, because we already know the value of the change attribute, and we're already flagging the size. In fact, this forces us to revalidate the change attribute a second time for no good reason. This extra flag appears to have been introduced as part of the xattr feature, when update_changeattr_locked() was converted for use by the xattr code. Fixes: 1b523ca972ed ("nfs: modify update_changeattr to deal with regular files") Signed-off-by: Trond Myklebust Signed-off-by: Anna Schumaker Signed-off-by: Greg Kroah-Hartman --- fs/nfs/nfs4proc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -1232,8 +1232,7 @@ nfs4_update_changeattr_locked(struct ino NFS_INO_INVALID_ACCESS | NFS_INO_INVALID_ACL | NFS_INO_INVALID_SIZE | NFS_INO_INVALID_OTHER | NFS_INO_INVALID_BLOCKS | NFS_INO_INVALID_NLINK | - NFS_INO_INVALID_MODE | NFS_INO_INVALID_XATTR | - NFS_INO_REVAL_PAGECACHE; + NFS_INO_INVALID_MODE | NFS_INO_INVALID_XATTR; nfsi->attrtimeo = NFS_MINATTRTIMEO(inode); } nfsi->attrtimeo_timestamp = jiffies;