From patchwork Wed Oct 4 18:52:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13409260 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A548E7C4F1 for ; Wed, 4 Oct 2023 18:55:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244631AbjJDSzU (ORCPT ); Wed, 4 Oct 2023 14:55:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244739AbjJDSyp (ORCPT ); Wed, 4 Oct 2023 14:54:45 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95F581BF1; Wed, 4 Oct 2023 11:54:20 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1C9FC433C9; Wed, 4 Oct 2023 18:54:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696445660; bh=YEqq5TbDW6Icj/FoFvAK1JpXcDhyI6Wo7wQqM+3TX2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bd8rjo0AWU8SX0B55IRMQTx0py0nMGADHJYF2r+l4nDxPRDpG5g0f8XP3zHEyuoab n/eE5y6XuC1klvpu1n3fY/4V1G3AY0UQOMxq7omLXgA83THjM/UYPYRGjGR4mHGjDt uaSp1Yj8pc0m5k1CT5f6QGqvqVbxGVDWemc1h6999KeoJHsR1DFO4DynyNTXdH6tb6 PTTqYbZjgILcdVZf38aontmXCApzH12RxMdrrrIwy7e2ASWltaS4woF2s/zN2CgmD0 /MxfjScR6BaDGVLUvX0iDdZGZ6xcLgYPC8WDszhsu7gGKDYZ2xP238NVZrI4efHpGg 4Veq+mfxnz/Kg== 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 v2 30/89] efivarfs: convert to new timestamp accessors Date: Wed, 4 Oct 2023 14:52:15 -0400 Message-ID: <20231004185347.80880-28-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231004185347.80880-1-jlayton@kernel.org> References: <20231004185221.80802-1-jlayton@kernel.org> <20231004185347.80880-1-jlayton@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Convert to using the new inode timestamp accessor functions. 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: