From patchwork Thu Sep 28 11:02:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 728277 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 52C42E732C0 for ; Thu, 28 Sep 2023 11:05:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232142AbjI1LFy (ORCPT ); Thu, 28 Sep 2023 07:05:54 -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 Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org 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: