Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3152550rdh; Thu, 28 Sep 2023 04:27:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEaEyGG6jhpKhEMEiUf74MAsLpjLj9nXG7r9hTqJZaW6NnNnRrijKaXhQoh2xyFwDmOvFB X-Received: by 2002:a05:6e02:1809:b0:351:3769:10a5 with SMTP id a9-20020a056e02180900b00351376910a5mr1055220ilv.29.1695900453530; Thu, 28 Sep 2023 04:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695900453; cv=none; d=google.com; s=arc-20160816; b=uo9ZShPIrAPbGcZvd/L3M39XX4sGPfLVshPn8pRIU9NAdfJRbMpj8dAuhXQ1GX+rYa YcKigLWGROV695IVP/2RS1/v6BdQSlsjYrPezMiNtIO4xEW4ft3uLYal5Yk/ls3O5qcg fgn4428DBZRU4GWmVSniCV93w6l1I8fetVDJ8nZjX50/oo1Vlxd6aYaiGDb10wLLX0Lb kfUe54Edb+eoKMtZbz/y24SmAPw9+/OubZLQHRpe5zTXlvBdEeDK4R20jtdguDBkxjro 8T2vvm6GfcK3i5uke6laVk/ku2e7VX4IJFm/9CiamasAdnfomibazSzNUeqOcQSPECwz WMOg== 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=kALHOePNs8+8G34HZ7dOrJQG5WxdojbQ89+Z20X3Bl0=; fh=orFn1WGA/+L3XOU5eysx2TNcnjC3zPbCOH52pqzS4vU=; b=yuwG5DQKNtEP8VA+pNtv7bwXtpYoSsowlSBY0Rl0IVd+ILfy3q2SSs/K3AOpmA972q Bz+heooJ0/EuRmgIMT/HWxvXpnDd/rV0tzq2Spm+HUQgJjfa+c+Ij05W7xSCLr+AZxLQ StTvvPA6K0tx3AJJnND44j/0RgRPbXTDOpy8sgt7YBXebk14rT33nKvvl+NQt+4NgiSH ZvrtNGXbxg6EJZTkOCnaZml7tdX86kN+jo6N4alzPxC2Adn0qTWMUEZHGKZVzTCNK4tO VIVcgtRzg29qEcSyeSCcAiuL74jsVWQCpNUN21G0kO7+AxKN5VkDefNCgK2EuYdIA43q 22Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k673oIYN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id bs1-20020a632801000000b00565f182839asi17345347pgb.28.2023.09.28.04.27.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:27:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k673oIYN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DBA2C8133D18; Thu, 28 Sep 2023 04:07:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232000AbjI1LGO (ORCPT + 99 others); Thu, 28 Sep 2023 07:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232137AbjI1LEs (ORCPT ); Thu, 28 Sep 2023 07:04:48 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BD50CCE; Thu, 28 Sep 2023 04:04:46 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28129C433CC; Thu, 28 Sep 2023 11:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899085; bh=0dmRPya3lrFlUXe2DLjSdq1n3kPcC+fqGa64ivtV6xQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k673oIYNz2jENTBcISeNoaRbLpgxnUW+0VJmClnsLgtaL9y5ql1V+OFhuYIv9YIbc s4QvBZbu+M7BMigZ2hOQx+r85c3RImDaACEXv1Gv25cLyA8LMPrKarBAfdiwRImank T3RDmuHCZ4wNxsYMbQPj3wWnHuF+RxMbJ8XPWylCJYTQXEFOnBkLY4TpBXHreLSB/1 s2L56TJopgBZQPZsMrCh7wVJ6wP4nmtaz3jLfIapvSFomUVZAW0yX3gdk8zhMfkEUi teu8K5HDMgEKMGynK1MtL26EtmeQwtCp82DmjcvBo81wHjuj6OgfK0Kjai961qRnJm 1bCNCvp860aDA== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-efi@vger.kernel.org Subject: [PATCH 29/87] fs/efivarfs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:38 -0400 Message-ID: <20230928110413.33032-28-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928110413.33032-1-jlayton@kernel.org> References: <20230928110300.32891-1-jlayton@kernel.org> <20230928110413.33032-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:07:01 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/efivarfs/file.c | 2 +- fs/efivarfs/inode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/efivarfs/file.c b/fs/efivarfs/file.c index 59b52718a3a2..7e9961639802 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 = inode_set_ctime_current(inode); + inode_set_mtime_to_ts(inode, inode_set_ctime_current(inode)); inode_unlock(inode); } diff --git a/fs/efivarfs/inode.c b/fs/efivarfs/inode.c index db9231f0e77b..76dd3c7295d9 100644 --- a/fs/efivarfs/inode.c +++ b/fs/efivarfs/inode.c @@ -25,7 +25,7 @@ struct inode *efivarfs_get_inode(struct super_block *sb, if (inode) { inode->i_ino = get_next_ino(); inode->i_mode = mode; - inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); inode->i_flags = is_removable ? 0 : S_IMMUTABLE; switch (mode & S_IFMT) { case S_IFREG: -- 2.41.0