Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29497862rwd; Wed, 5 Jul 2023 12:46:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlEz4B4cs4TQfOc9epg2wVk4iIgRKGFAvULneX1BBINEQGt6ZgVB9VmSkDGywWEpeQklhHXo X-Received: by 2002:a05:6a00:2346:b0:673:5d1e:6657 with SMTP id j6-20020a056a00234600b006735d1e6657mr17228241pfj.7.1688586378042; Wed, 05 Jul 2023 12:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688586378; cv=none; d=google.com; s=arc-20160816; b=DkoHTxYU5Bpk8hry4D2gHJZQ4Pu6OFmfD/t5OYWcXL00SZodTN3F6OuQo7FI3uZOMv O4LpRA4FYMZCxKTLkEiSCKv4EiBZXeyaYVpQFUldsZ7RcPqy4LKkz2nGIyTtchmjxUKy 9nEBkgOVhs3biOtYtJHcwjfX2va3scAoIGKgEriiRKBmRgDqO9wi8oQZ/XFriLEIFCDG 5jQyoZHK7Pg0UrBj81ml4XVQh7Tt0pfGvSkBw+MjXttwptOHR4Lm7cA6LdUoqofocum/ 1M2l+AeGqyWT98eFBR446VPJQ7TthSyyjwJHpqXBUYzJgy/uHj5cwn1K6Ua6dvaLIsp3 TJVQ== 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:cc:to:from :dkim-signature; bh=1QcN5wRw9UwkW94uuHj2a96mgzfBdo9N2i9qLizlxPg=; fh=MnumwSc2Lu5kQ7dcvNoe84fV8IrhKdisdHLTZIbGVWE=; b=XsoBwWcwSONrFRw194TqOrY8trvzNJp2PVfjnu7Up6FVSKw8unFzK/Ko6HgrRWYrQa Spz46xA6h40iim/Me/Uil/uWwMrLn8q2OAihbKdGTYNrlUDFlf0Nh9uIMt6EtlDULfvd ZYV8iy+xpEPyRq9v6sNI2zEcfmqAmfkeCex+Aer5nXMKbUIJ8xfDwJxpNYujR6Dkn/MO FeLz7txrIumynlpefQ9tVGXX3ARkdUiTK3erZedaLJj0FY2XfSO9/On43rRWW3wqB2oO 4yyo6c5wSB0Hu/ssd6VwnQlFsOaaTJCh5q+vatRCMgdsUGgPsQWRZ8Uv38V3bqWwwVsv iRSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CTwy+iQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ff25-20020a056a002f5900b006826f3512fbsi10278462pfb.253.2023.07.05.12.46.03; Wed, 05 Jul 2023 12:46:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CTwy+iQw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233970AbjGETJK (ORCPT + 99 others); Wed, 5 Jul 2023 15:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234129AbjGETI0 (ORCPT ); Wed, 5 Jul 2023 15:08:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F28735AD; Wed, 5 Jul 2023 12:05:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7012D6171C; Wed, 5 Jul 2023 19:05:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56A1FC433C8; Wed, 5 Jul 2023 19:05:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583911; bh=qsxxMPleHFd6x6U4R0KWNNZQhuduOrWIl5HygaPVEtU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CTwy+iQw453Xf5IWZcFxXpMjMeR+Lwc3Uo7IoFH4CYQYjUOkXg9KtOul0MlwgaZI5 pf7T5nolArwiZFkOVj9mZ6YVhQSysfvPqZalQKpD7AsYa1Fxub3Yna3/QLT6uIXVaz fy/mH7prd8fK6mmyCQRkR7IVBr+qdUkH4w6HTOCG9XzgKCIv9KiFe5H0F1ZNp+nLZv riM+PeCgqlpDBazEhrOP8++uBvi5YSzNNqmiRtzWkitdbnMtB2dVhXuA+VnrPwzNvK 20fac+OEf7df/k4Av1fDFj9JlpG2m06LSGouqqkXzoc0Xd4wnv6ywIKlFmaHMUHE2f amM7rAuIYrx8Q== From: Jeff Layton To: Christian Brauner Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 71/92] ramfs: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:01:36 -0400 Message-ID: <20230705190309.579783-69-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230705190309.579783-1-jlayton@kernel.org> References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 In later patches, we're going to change how the inode's ctime field is used. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Signed-off-by: Jeff Layton --- fs/ramfs/inode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index fef477c78107..18e8387cab41 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->i_ctime = current_time(inode); + inode->i_atime = inode->i_mtime = inode_set_ctime_current(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 = dir->i_ctime = current_time(dir); + dir->i_mtime = inode_set_ctime_current(dir); } return error; } @@ -138,7 +138,7 @@ static int ramfs_symlink(struct mnt_idmap *idmap, struct inode *dir, if (!error) { d_instantiate(dentry, inode); dget(dentry); - dir->i_mtime = dir->i_ctime = current_time(dir); + dir->i_mtime = inode_set_ctime_current(dir); } else iput(inode); } -- 2.41.0