From patchwork Wed Oct 4 18:52:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 13409327 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 3F8C7E7C4E9 for ; Wed, 4 Oct 2023 18:59:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245258AbjJDS71 (ORCPT ); Wed, 4 Oct 2023 14:59:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244976AbjJDS5i (ORCPT ); Wed, 4 Oct 2023 14:57:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D258B1BCA; Wed, 4 Oct 2023 11:55:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E04E8C433C8; Wed, 4 Oct 2023 18:55:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696445706; bh=cYZfH8J20PFiLPgQtnzXidDq8KjSTBwLQM10SWUOyDc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qb5DWzuV+Yl+U5i4O4AmUUPGTtX3PVCwHHJ0ZsJMlSb2jRzt/5ftMWWnHnawPiUxf m/JOkoQ/ElFbyi38QpXwo5bKDZ4sKET3/xO9mydJGs97TUjiZ3j8jgzoANQj6Pe5+F zOInfraFWC1C+Vf8Su/e7GPDTaOQFYaM7GPP9+OV1eCokyYW68iQfeQ9znZP94fNtu tpA6x5rcgX8+ILIGAHBFqF08ABgd489h5Ppjii12q9xTC/s5/k+rMoS3GRA3DNPUve fUxw0wzSzQ8s+llzdXnlJXFolH5nunFeMvgfLuit7ETtrMziCiYrlmsoW2ZzQ++/Ff 50oAonuXfFlrQ== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 67/89] romfs: convert to new timestamp accessors Date: Wed, 4 Oct 2023 14:52:52 -0400 Message-ID: <20231004185347.80880-65-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/romfs/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/romfs/super.c b/fs/romfs/super.c index b1bdfbc211c3..545ad44f96b8 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.c @@ -322,7 +322,8 @@ static struct inode *romfs_iget(struct super_block *sb, unsigned long pos) set_nlink(i, 1); /* Hard to decide.. */ i->i_size = be32_to_cpu(ri.size); - i->i_mtime = i->i_atime = inode_set_ctime(i, 0, 0); + inode_set_mtime_to_ts(i, + inode_set_atime_to_ts(i, inode_set_ctime(i, 0, 0))); /* set up mode and ops */ mode = romfs_modemap[nextfh & ROMFH_TYPE];