Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29491820rwd; Wed, 5 Jul 2023 12:40:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGRjxM/ZJEpHeGDr5I5QJJtT7kHFhFUGeQfvwF9GB6TH2yKy/+D5/prZ3fKHNpiUlReb4TR X-Received: by 2002:a05:6a20:1612:b0:12c:f685:87e2 with SMTP id l18-20020a056a20161200b0012cf68587e2mr11640932pzj.60.1688586007965; Wed, 05 Jul 2023 12:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688586007; cv=none; d=google.com; s=arc-20160816; b=s+03qzOs6GUXpcgRVwZUSP2abcbpjvRVar1LXRSgjTdnWpBN2xzItO02zMx2M6yL7X 1d/J7WUPBpOhKd9uXWIoj5u1vjMZLfmMbpr6GQKXGDqOonY6cM/CM7f2MF070YFVIGaY ZZ+S0z3epb+RVM1OCz3Zt3qOES07BbchnIQiRiZ3bvt/80TS1Bkuo2RUD04Les2xoMsL xwRZhppc6ukYzuPxXKhnvAPwSmrCzoytrRzHA87x+t8aXLgBs4PpiQyl6Fn/iTxHyDTh wY6/hS+bpQHvCoG3BV6RzbDwWU+vS/AtZwBITTrcmplep2/vhCZPqB+v4rolFOQ7sMQ9 0yXA== 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:cc:to:from :dkim-signature; bh=Ua85BCS4tRH3nbWjDh5uiknXobOPYgbdB/sS053sCBo=; fh=HAO2JJZuc9osmNUcdmJ13OJ8gAwSEUYLoO0odXf8GRQ=; b=DIyLTv3q6Gnt3xAAcUQP98ddMlweI5gShnyUYfWYVk6QcPBhMTOOOAIHRmVlt5ypK9 t5qMyiAOlmxYI4guVhtu0BOmx74CPz9f+UNQ9GCJgDkOT2C5z/Wfd1X7o4j3k49KGl4j oyItnk0wSMs9kbg7FLGm81tXgxGElbtCnnaYU8SrT7yaYNwMqBQ2CdntL79Afsvz8MjN HdCwMYj7kmCLM4B0VI0GXeuQLKNDXLTf8zLS9tv+kmHUneGwspCjmc0KKYWcPdMiPbC2 fK4ouoDtBF/2Bwa+V1yJ/wPGbuMeScaRsaa1yd0dP25zdd1/iauzRm6zE50cJ7LH88Bd 7nIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=phaRUhyc; 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 t4-20020a170902e84400b001b87e0a8780si12292236plg.36.2023.07.05.12.39.53; Wed, 05 Jul 2023 12:40:07 -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=phaRUhyc; 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 S233451AbjGETDY (ORCPT + 99 others); Wed, 5 Jul 2023 15:03:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233333AbjGETDS (ORCPT ); Wed, 5 Jul 2023 15:03:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F6341730; Wed, 5 Jul 2023 12:03:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B5149616C4; Wed, 5 Jul 2023 19:03:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 623D6C433C7; Wed, 5 Jul 2023 19:03:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583794; bh=kM0aleIbcnRzUxbHQknvyJkwiNG9CJKpnUbOghkokco=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=phaRUhycINZtI8zYHg2fG+4V1LUiUO/5B9eREQVACAzMMyozSUi/ITEr6/5RK7bsR iz7VqtRyVBoSBmASgtj/FnMd27l66LZTn80QtUDRsBzil07NF6x7PGdMR8LyBlxUPZ opM56Z0PcwVH5XjNxm2R/QgwYZEuIUE1VBns+KCJ7wKFUz9phIWV2LI4vrEKu1OJ5n Eww0q6XNhtkREiEuJHMjdtbc7WAyXu8ftTasC7vEfj1Gz/0oK+tCMYh98ztMflFc6m lS0QrRTSmiv3w4N+JNZXRaXgcQOX/lWJlc3E0uJzhvYwyQwFaiW7eK0iXEQJNbpj9z 35fi6aJ+Q580w== From: Jeff Layton To: Christian Brauner , Jeremy Kerr , Ard Biesheuvel Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Subject: [PATCH v2 03/92] efivarfs: update ctime when mtime changes on a write Date: Wed, 5 Jul 2023 15:00:30 -0400 Message-ID: <20230705190309.579783-3-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230705190309.579783-1-jlayton@kernel.org> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 POSIX says: "Upon successful completion, where nbyte is greater than 0, write() shall mark for update the last data modification and last file status change timestamps of the file..." Add the missing ctime update. 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.41.0