From patchwork Thu Sep 28 11:03: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: 13402718 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 81ADEE732C0 for ; Thu, 28 Sep 2023 11:10:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232065AbjI1LKC (ORCPT ); Thu, 28 Sep 2023 07:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232425AbjI1LJR (ORCPT ); Thu, 28 Sep 2023 07:09:17 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73967212B; Thu, 28 Sep 2023 04:05:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BC26C43391; Thu, 28 Sep 2023 11:05:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899131; bh=zVtZIifGPxJTqvfBSth/QiVBDUFp/kv30UuF+2f2ZAU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lmlkk7drKwVLRoZsRFrMeORT8Twqn+uCMlk8R7fhZ1YEJ62CT+3a2dlYbPTJTi+Bi bl0fJyL647QZBCPOGDvDefy6pNK5+av+mHgk7n5YXoWqt2iDkiZygvT2TliGfKmM7q TjqFFaniLkn2W/fKZZvbR0JtdVmkPl+lEHyZMU+ApaR2leQCQAIZzx0BWE31VVNmyp DzHxlczPRUoz1NPa9JoiJ8nbIDTVZT1ljmH/DAFVqX37WOgWpJqW9IIWtaWE1oFGCW csYEL1QNtrvBMVyf8fKVe917y6DSFiuK1DyS//P6rJbqybpPGPW4jq6L6VQ5UiqPAg jaUiJmcGHyVtw== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 66/87] fs/romfs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:03:15 -0400 Message-ID: <20230928110413.33032-65-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-fsdevel@vger.kernel.org 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 5c35f6c76037..c09d81b548e4 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];