Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3149318rdh; Thu, 28 Sep 2023 04:20:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEva1Kww4O3iS0CJiqCCbpJf7PCofLqCb/WQ9dtuLmFvEhCkrsJMXQ3NxaWJcxrIXtnTiK9 X-Received: by 2002:a05:6a00:2288:b0:68f:c081:3d5c with SMTP id f8-20020a056a00228800b0068fc0813d5cmr870088pfe.8.1695900040023; Thu, 28 Sep 2023 04:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695900039; cv=none; d=google.com; s=arc-20160816; b=H2/XiyL+bGGzYBYG0pd8kXNmzyk+JZsWe7NNJKK/qhWjtsvFz2jbmWVIN2P1YUMmRV b0+mc1IAmIsiKwnUD6VjAMzWuM5j9O/jcEMqBs0jSSzgviuRyp44wFUte4k0d21yrml3 P1ERJllIWCtHbTmIHUdm9pkT6bhAuEB25T9LaiX5K0IUX2sxH6gJDD5INn57DHRQofvB JCIYlqcbqGhkecvddCWF8nhXZRwt9lV2wA4jofps63BTbJqIFXC/ql7KeVY2OeoLGg03 6NAaZSkeU0akrjKoDp501ot3SJ2yJp93++kQlPm282XclWaP0kCT2BunGaCtRmJVZDKi 6aXw== 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:to:from :dkim-signature; bh=OaUZtdGJ3rBCqQ/6czzOxpYOu1BI0mPdSk4p86EskKs=; fh=c1hve9LK7bidUltaxotdOOkNtWZ8Drk/KOyPdUWU/OI=; b=MNB4ghidU9lTP61uIiRdO47WvUS+ooKgTlN4ez5gWPjod3X91hV0kDpnWc58hWxg6I qfwyKDJMlRg2qd3RoK/IYr3F9kJQlDBLSTuGJSqFFMUudWJCbB4sH7a6xHosHwxXrsqx NktjF+MXeiTd5H50jodNUPRG3ExCbwFaC6FfZrpWFpYquPqkzgWqVXrQapWWLB4hCzaU bEiXAmTxKWLRTZLn0J4JzNkew5ziKri2xSW5jY+nkaSBaMA3jvPRw938PAXSDJdI9D8W v20pkeB5FjwPDmb2avMX8rvtipYx1+6rK+BWthffSx8PmD2oc7EqbV2tWbdYDuwzVq/E x85A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=delfDE9l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id ei37-20020a056a0080e500b0068e243a72basi17355973pfb.330.2023.09.28.04.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:20:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=delfDE9l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 76620858F796; Thu, 28 Sep 2023 04:10:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232411AbjI1LJw (ORCPT + 99 others); Thu, 28 Sep 2023 07:09:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232444AbjI1LJI (ORCPT ); Thu, 28 Sep 2023 07:09:08 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BABC62118; Thu, 28 Sep 2023 04:05:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BFE8C433CC; Thu, 28 Sep 2023 11:05:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899129; bh=3LzY1QRMSw8FwRd1+T82f5waDViGnmvRRNSI+fB1IAk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=delfDE9loiqO3Ouk1TN+e5suQ+hlcuSQQ0rmXemqSdFicJYQTe0c1wAPsP83gGCgX lyHmBwDIU23TNtN4UJ1euEvBS/9BIf9YyxFejUXFzf7SM0iGjcxJLqr4A/SNij42LA cw6CcqzZXbpFF0GB3obLTFIUSTSMuNHa7JorJCn1B0E2EmsthztYg+BXlqbWwISLwy 61G8rIzZmGBDRwf1y+vQFJ4gSbU2pNlH4fVdwiciZFeqaNOL5dfPht27Mnfhek6z/t MuXZLL63iBt9lXK1XF6/jrGjTAqCAljQ2dRNOEJxBRLN22p+22ixExJxxtLq0Cbza2 OBjQE7MHfDhkw== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 64/87] fs/ramfs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:03:13 -0400 Message-ID: <20230928110413.33032-63-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=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:10:18 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/ramfs/inode.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 18e8387cab41..4ac05a9e25bc 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c @@ -65,7 +65,7 @@ struct inode *ramfs_get_inode(struct super_block *sb, inode->i_mapping->a_ops = &ram_aops; mapping_set_gfp_mask(inode->i_mapping, GFP_HIGHUSER); mapping_set_unevictable(inode->i_mapping); - inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); + simple_inode_init_ts(inode); switch (mode & S_IFMT) { default: init_special_inode(inode, mode, dev); @@ -105,7 +105,7 @@ ramfs_mknod(struct mnt_idmap *idmap, struct inode *dir, d_instantiate(dentry, inode); dget(dentry); /* Extra count - pin the dentry in core */ error = 0; - dir->i_mtime = inode_set_ctime_current(dir); + inode_set_mtime_to_ts(dir, inode_set_ctime_current(dir)); } return error; } @@ -138,7 +138,8 @@ static int ramfs_symlink(struct mnt_idmap *idmap, struct inode *dir, if (!error) { d_instantiate(dentry, inode); dget(dentry); - dir->i_mtime = inode_set_ctime_current(dir); + inode_set_mtime_to_ts(dir, + inode_set_ctime_current(dir)); } else iput(inode); } -- 2.41.0