Message ID | 20230705190309.579783-14-jlayton@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2090058vqx; Wed, 5 Jul 2023 12:29:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlE4eQaBlxicEltiZGL8UkZN/7KPxHagLmiw7eG4WcuGM0N52oYFPm/W8OvbyD28oUitnl0D X-Received: by 2002:a17:902:e84d:b0:1b8:5bf5:543a with SMTP id t13-20020a170902e84d00b001b85bf5543amr11632604plg.49.1688585351063; Wed, 05 Jul 2023 12:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688585351; cv=none; d=google.com; s=arc-20160816; b=AORJATfVGIZSvi+uR1X8MAK7pN4x8giwfxBB0itX/VLQvEgR8iF/eBWb0b0/ZePxrB 7DSoTnPBnJoZpVo8DZtxTf7/5tJZKnlf+9vSMj/tbyWk16jNjSZI2rPOfGMaES4n/xxD TZAtPJ8eXEvS4dlJoESzYvMkdaQ/wVhQdRghSSlQNcXv7x2fVzJqH6A2WS51TKSKkB9x ofrMQqQmiM4FX2qqb0JvYP1aNpOGBixOkjIwNgoijl5PHCVoXbui1cbU2R+61YtSVIQa HiHzNTSGsFZXxENY/IOYMGeJYRgLI/HftIyI7JyXl0QcUMhSXnHRmg2jiwP9ZKsw5iTi JmAw== 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=cyL0/jnFa0SSor0do8LxfwCRRpMJCjTNUWxAvo1OcyQ=; fh=yqGPVqonb+j7gQBZAG/cMFgCj2DrqBvmRzJiuLrbN2U=; b=TEPvWXd26QboXFAIyYpfitqKZrARLH2bLujvnyr098lS8urzqETpgLT+CA1IkK96cj 7btd71zeV0YfP/xZ4vEoFsAPfQvaq6lCewMzWAe7NGDimEvpPn8Scjrsg9ywwTxpEJ14 PVZk2DID/NswLxWDEasGqKHjrqZw86OMl0dKivL1jg19IX10f1sV69dxlKgNxifovRnz IUIh+SBBzUgrxgHzwlzncYCv8knhc05Z8q4+YftXLzPVsCCIa5yAt8Iue+n+03WEcS8k fS6xzPr9aAKa8DYK5qHVK99+Q2WcB2szC/cBbFhFvXDIYmffZy4PNW/75MfCVo4oNj3o oo/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lCOSIObn; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a170902dac800b001b892b6cec9si8313062plx.150.2023.07.05.12.28.56; Wed, 05 Jul 2023 12:29:11 -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=lCOSIObn; 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 S233647AbjGETEI (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Wed, 5 Jul 2023 15:04:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233533AbjGETDq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Jul 2023 15:03:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69E2F1995; Wed, 5 Jul 2023 12:03:32 -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 EDBE5616F4; Wed, 5 Jul 2023 19:03:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65856C433C8; Wed, 5 Jul 2023 19:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583811; bh=6qs+fO8FwY5G4Sdovk+ksc1ld8uOMNkYoud5x4oGORo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lCOSIObnSGtdswfuOxHrkytYtuC0v2GkDH9Ujb3uib/K9cjz8tFm+277vkOtxzOIz jsuFePQP+SZqO/UOISgrCVH6B+Gv/wu9b57wM/GfuixNw8PUWznOKNOWC9wcROQXMH +x1bbcxyhfD3BsGjnzpsEcfu/Do5PhcElGm8g9Lbh4XBvqx+BnyedtZ/13Y2S0BWVk f3HXa1Ri1JNLFqSzAYwRdw1DtPghDodViAmmJS56sDB2uQFadywWUW4pPKSZxwLzMn +6JhBvTjBSuhDdHPZe6divNia2Jh4Hm4wjp804lhTEA6OOGVjdmQiHOvMnFoXlyiDD 4z7L1Qj1QTG+Q== From: Jeff Layton <jlayton@kernel.org> To: Christian Brauner <brauner@kernel.org>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Alexander Gordeev <agordeev@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com> Cc: Al Viro <viro@zeniv.linux.org.uk>, Jan Kara <jack@suse.cz>, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH v2 16/92] s390: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:00:41 -0400 Message-ID: <20230705190309.579783-14-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770610072949288970?= X-GMAIL-MSGID: =?utf-8?q?1770610072949288970?= |
Series |
[v2,01/92] ibmvmc: update ctime in conjunction with mtime on write
|
|
Commit Message
Jeff Layton
July 5, 2023, 7 p.m. UTC
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. Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Jeff Layton <jlayton@kernel.org> --- arch/s390/hypfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Wed, Jul 05, 2023 at 03:00:41PM -0400, Jeff Layton wrote: > 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. > > Reviewed-by: Jan Kara <jack@suse.cz> > Signed-off-by: Jeff Layton <jlayton@kernel.org> > --- > arch/s390/hypfs/inode.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c > index ee919bfc8186..5feef8da406b 100644 > --- a/arch/s390/hypfs/inode.c > +++ b/arch/s390/hypfs/inode.c > @@ -53,7 +53,7 @@ static void hypfs_update_update(struct super_block *sb) > struct inode *inode = d_inode(sb_info->update_file); > > sb_info->last_update = ktime_get_seconds(); > - inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); > + inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); > } > > /* directory tree removal functions */ > @@ -101,7 +101,7 @@ static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode) > ret->i_mode = mode; > ret->i_uid = hypfs_info->uid; > ret->i_gid = hypfs_info->gid; > - ret->i_atime = ret->i_mtime = ret->i_ctime = current_time(ret); > + ret->i_atime = ret->i_mtime = inode_set_ctime_current(ret); > if (S_ISDIR(mode)) > set_nlink(ret, 2); > } Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index ee919bfc8186..5feef8da406b 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c @@ -53,7 +53,7 @@ static void hypfs_update_update(struct super_block *sb) struct inode *inode = d_inode(sb_info->update_file); sb_info->last_update = ktime_get_seconds(); - inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); + inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); } /* directory tree removal functions */ @@ -101,7 +101,7 @@ static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode) ret->i_mode = mode; ret->i_uid = hypfs_info->uid; ret->i_gid = hypfs_info->gid; - ret->i_atime = ret->i_mtime = ret->i_ctime = current_time(ret); + ret->i_atime = ret->i_mtime = inode_set_ctime_current(ret); if (S_ISDIR(mode)) set_nlink(ret, 2); }