Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2028899rwd; Fri, 9 Jun 2023 05:52:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WTFoo3PfweJ/x447imBjiB9WygZZgBx12BTs/2jQtWkUxl7pxTVpkPm7UkqnE5lXxWdwe X-Received: by 2002:a05:6808:1446:b0:39a:6273:661f with SMTP id x6-20020a056808144600b0039a6273661fmr1264598oiv.52.1686315143749; Fri, 09 Jun 2023 05:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686315143; cv=none; d=google.com; s=arc-20160816; b=VNhF1aAsF9AhvlOcUJtO1aFMp9x2q8S51fGY9XHhzNTJiN8Hit+hP9tck2aP/Acipr c32IdCGmdeHPPXVmP7Izdl0TS5Dg3jLLrEWz6TodoQONggbnHmi50qcsthmKJ34Zdn6M lshai9OKiVWxSWj4cySVBsqH1qmU6eCEUDNlp86im2OuicCE3qn1ISmzbWjEkraBy92p 7RDJ+y3uvxSguDG6af/vm41WMha8uvWv5VPUK5vWy1gzaP+9mfauKVDqaKa5Si2EDE7C h6IK4aPy93Yh5v+im/S5wQMG+BlY46T9Ji5FfPth+hm2fvxHpAdakS1WgpxGo+A5QhrK dt3g== 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=WFaCToBnFPaFKKC/JDaYQIxvrapgffJb+ClHHZItfm8=; b=lYSEO9FdkEUf5FW7zRo4lqU5VcqlSA1LyRdqF8x7cV2bNsnUpfZGucsR5YvWOwZb6M ZsK5j3+imkLP3OuC0+tEY38r8j79j97aUOIx6fjzCT4gxCx2cSx/m+d06zAQnCTQRXsl 52xxlg+dTLCRNt3mp6H3v77Mr67R4HChHsVC5k9JCnZY1uzdmMHmzixPZW7VYGc53Qxg seT0BVffemlHF3Fa+oSIIm/Yxb42rj8fy1/UhQgGpBZFtECLqH+1X2NdIb7PN82n4DGy Kqs1NbMOy0HaJEhkrnH9A6rCwM6ulEZvg2FEz+KIaz7IQMOAO4zhxVT25T9Mg1lgefD2 wr5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UU0QSo/T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a17090a118200b0024e0f3308a0si4365749pja.32.2023.06.09.05.52.08; Fri, 09 Jun 2023 05:52:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UU0QSo/T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S241221AbjFIMvV (ORCPT + 99 others); Fri, 9 Jun 2023 08:51:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240874AbjFIMuq (ORCPT ); Fri, 9 Jun 2023 08:50:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6C6B2D4A; Fri, 9 Jun 2023 05:50:45 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 43137657CE; Fri, 9 Jun 2023 12:50:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99BB7C433EF; Fri, 9 Jun 2023 12:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686315044; bh=C+VzTLw0w0g9nKyYEhFUZrnWGPtk5Bk31eEt6nAAZUA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UU0QSo/Tqesjy1sfws4iEFGWbc1aWk7WgTcqFHMP/zkXRbTbKg0RIhASJtBj0wj/O 94UxGVPWvkUD+lTjh8/pd9mgd1ex2niBDqkSUwU+jS16RmnnrWCOT/J0GvLH9xwn8C BWzjzjXPlcUgnEi0SDC56NVC06LBeyXGg6z3Fob14cqan5Np7tRBERq4mJuL79nS7v Kv7LWrkcvSwg+6rEeEQkQa2rllPcEmFCl68BWQbd5nrPmAAZiPR8xyXyYEVnXiwVi1 Ili690n+HfGsH7jEd0Ri/5bbF4tHd8uY0r4EgtCH5FoE3k5hfztlZN3zrioC5MCzG1 OdbuqepssoZhg== From: Jeff Layton To: Christian Brauner , Al Viro , Brad Warrum , Ritu Agarwal , Arnd Bergmann , Greg Kroah-Hartman , Ian Kent , "Tigran A. Aivazian" , Jeremy Kerr , Ard Biesheuvel , Namjae Jeon , Sungjong Seo , Bob Peterson , Andreas Gruenbacher , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , Ruihan Li , Suren Baghdasaryan , Sebastian Reichel , Wolfram Sang , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, autofs@vger.kernel.org, linux-efi@vger.kernel.org, linux-fsdevel@vger.kernel.org, cluster-devel@redhat.com, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org Subject: [PATCH 5/9] efivarfs: update ctime when mtime changes on a write Date: Fri, 9 Jun 2023 08:50:19 -0400 Message-Id: <20230609125023.399942-6-jlayton@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230609125023.399942-1-jlayton@kernel.org> References: <20230609125023.399942-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Signed-off-by: Jeff Layton --- fs/efivarfs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/efivarfs/file.c b/fs/efivarfs/file.c index d57ee15874f9..375576111dc3 100644 --- a/fs/efivarfs/file.c +++ b/fs/efivarfs/file.c @@ -51,7 +51,7 @@ static ssize_t efivarfs_file_write(struct file *file, } else { inode_lock(inode); i_size_write(inode, datasize + sizeof(attributes)); - inode->i_mtime = current_time(inode); + inode->i_mtime = inode->i_ctime = current_time(inode); inode_unlock(inode); } -- 2.40.1