From patchwork Wed Oct 4 18:51:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 148472 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp339394vqb; Wed, 4 Oct 2023 11:54:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKJBI2QxZdSQpfIDrqMZTkSfTy/FSTf9bhqgdFJlR0mYoHhzPT49fapnyw1TYDC0hisIcP X-Received: by 2002:a17:90a:950e:b0:274:8be8:f767 with SMTP id t14-20020a17090a950e00b002748be8f767mr2896758pjo.15.1696445691440; Wed, 04 Oct 2023 11:54:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696445691; cv=none; d=google.com; s=arc-20160816; b=txNf+oA9nm4xC9eiXQhN3luydcCiBYW6skuqwxd2WPsNx6FDK3HzBOCwus/URzXXwG l7BbOAm8PaQoBuJQRmjRyLTTT8wdOypDET3ljGsLBNhFitmytTEuHwK7Ttl7AOJ6Ad5y eAHEbv/q3gpAE2QPxLOv6PwGCQ6TT+F4STagjZm3uW6nv1Vo+suwhhNXWL5hyyRJMu7h 83T6iH5uJ5Q2AFBAEcAKKB/S1FPjgq3Y9fWka9yugT6+fG0FT/dhqVBoLTANDMbbbxPp 7P4t2HoNYIx8UEQo8XVKxprxekbeT++7MoVyb9bIVn6zVT1MH8sfxL86BR+90CV/Oid3 ze1Q== 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=CHCiuPPNFdqmROpO+/5/zKKdi4fmafXqhfFywouZ1KM=; fh=alN9iiYU7VU/LyDGC48ggoW9bbwq3WwAF7zkwWi62ns=; b=EhuArN30bAZD53TMeIcGqz3Gcwt288yuPXLyDXuIE2uNo4ppGp0+sOVurML1fRC4rV Q2f7j2Q2J5/aVHZF4eCDADPBuDhV3D5HnO3Bh/ivpczA/oehtHehCaIROT802HIKxu5y ZSSdIGZ/8oSmrwJoJvhzq+81eWeEo+MVQqitXiAXXlu1dZhUAKcX3fHmAJ/0Znfbuq2Z xZs45c5S0aYzYve4p3jZwW3/ACCLfgw66JYopKGDm+J4RcT8vJxst1buu46QQQBWQNgn F+70lgU5jDr+cclmB3+HyQ4hGc2KVFXBw0W/WntYyDR6+mkgPy4bo46FZXkDhfPPbUJo Oz/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S0rD3xt5; 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a8-20020a17090ad80800b0027761a3a4b0si2085210pjv.0.2023.10.04.11.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 11:54:51 -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=S0rD3xt5; 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 DC4B583EB30B; Wed, 4 Oct 2023 11:54:50 -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 S243700AbjJDSyn (ORCPT + 19 others); Wed, 4 Oct 2023 14:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244703AbjJDSy3 (ORCPT ); Wed, 4 Oct 2023 14:54:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A53C719AF; Wed, 4 Oct 2023 11:53:51 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91AB5C433C9; Wed, 4 Oct 2023 18:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696445631; bh=HdzDDIAOL0gyCSOGAQpME4U8jFKk2Teg8J7WHsz4110=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S0rD3xt5/twMo5w2l6u/b9eeLMHekUDAQLI4UDIld+vM0pW+5jjCXGPZuvR5rWnFe 3n8hVDKA7Tg+eu5X5KYGVCRpV9nUWHRfHJSKmv5Lp4Fn7LulDHX7egs9NX7CDGgGuB Gdptz0wYuxHjFCp6gRkR3jRc2fbNf44s83X7h4R72N7qED4gYb5F7h4qlQLts04pG5 /detTTOnXPt3mfgt6AKSHW2QvMUjkMOdGLoAf2zcunl49eIsrDpHqcbKvAw5+VX87W hc7TgiCu2DJTD0HNhI7DD5jdWo4FieZu47KDPErL37hNpKzS8031iAQcpqcM1RIGTs C8qIbcH1F5GTw== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Borntraeger , Sven Schnelle , linux-s390@vger.kernel.org Subject: [PATCH v2 04/89] hypfs: convert to new timestamp accessors Date: Wed, 4 Oct 2023 14:51:49 -0400 Message-ID: <20231004185347.80880-2-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 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]); Wed, 04 Oct 2023 11:54:50 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778852237708220782 X-GMAIL-MSGID: 1778852237708220782 Convert to using the new inode timestamp accessor functions. Signed-off-by: Jeff Layton --- 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 ada83149932f..858beaf4a8cb 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_set_ctime_current(inode); + simple_inode_init_ts(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 = inode_set_ctime_current(ret); + simple_inode_init_ts(ret); if (S_ISDIR(mode)) set_nlink(ret, 2); }