Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9495156rwd; Wed, 21 Jun 2023 08:08:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hEHpBHj9GxONmupRngiDer8+ZR8fs/NEduXFUIeWf0R9Wm/el2IlURiXkBvUzqTZgCcG1 X-Received: by 2002:a05:6a20:42a6:b0:122:cd6d:38e with SMTP id o38-20020a056a2042a600b00122cd6d038emr4870742pzj.37.1687360103971; Wed, 21 Jun 2023 08:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687360103; cv=none; d=google.com; s=arc-20160816; b=P4KIdYZZeSNNvzgRU1SAlR+fdddPXz11zRwe6cvPVrIu1DDgjxG0vaB/VM0uT0swHe GgwCsuc9DaiKWzOc3tHXFvqh3r1HG9DZ+FgSvf/UnbalBtftlrfL3Ah5/J0FsttaLCtK /6M4gCaDqv2HlJKG9s8GbB0TTNOtn0gCud6d94hPAwvQ5stchgKfgWbKlRO07xNBmSSu v0IzAEGDo6cDc/UCYV/s/qZuaumuRu0bXd/v9tjo5sb2YFH41oUO3DUDiBXWHVXBLbee 5oXbozoPcg49NCxAlveMage8NV47UG5701akXIhcXo28vOmTbx1zFy9EYj6MoQ9eSNDg cLCQ== 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=cXwNZ2PdJ9fHjz0RiViAUiLoHwKgsRe6GOyWPM60n38=; b=XNBNm3GD95C4h85TJJ2u6Mb1wTOGCLyHtFPWI6zcE0aJ06cIn2ATk973HlGRGXAgSh ceekWvwmXR1nnnE2n0a66g3z476XrRf2fImIsoH0RMeat9QeiKj3xLAnpeoPorq4ky6P Y+Ch7lREVcuPH56PSkz/qrSuDawFrByby+l5NZ4enpp9FkLXxOLcasuHmBGrTY2HoIzy 4GYovClLb7fp5ZzQ6SZ1pBwdnDKocetFia0Ld5MMOCDzIjEbHWrVtm4OeGIL3uJjVOFd mX1ui0n4nb+ppbWF1piSnQ6s7dlowfZ2jK2tdUTn9wZT6jClVh5+ej4rBXiLanNc+bjp Fl7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FrdS7vqW; 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 e70-20020a636949000000b0055381e05230si4084074pgc.576.2023.06.21.08.08.10; Wed, 21 Jun 2023 08:08:23 -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=FrdS7vqW; 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 S232042AbjFUOsB (ORCPT + 99 others); Wed, 21 Jun 2023 10:48:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232103AbjFUOr4 (ORCPT ); Wed, 21 Jun 2023 10:47:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C504619BF for ; Wed, 21 Jun 2023 07:47:45 -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 3DC8661572 for ; Wed, 21 Jun 2023 14:47:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD689C433C8; Wed, 21 Jun 2023 14:47:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687358864; bh=6wKzjV0iuSpON8C45UbhnIMmtp9G0BRhhSUZHcR54lA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FrdS7vqWpKiQdnYN0QemIPBA3NvZyxGcwHQDdZFaFqeDLoz/JJlfvups7Ioz3oweJ zyYTHTOf/ECjQWtQX/OiaLvkpd6acM0Fr0My0yp2m/bRYwvPIs5u0m2CLB6BuSUcur oX2edGgW/L/9ExKADvspyrGqTRJTo6NmYs/ciQYpdzT/P5wfdBhofpJgqTJR07kOXH P3q9SitH3OOFJ04P4VaOgOokp71nRgY3YWYxBYBHuh5QSEYbrvehzHkmx3XpjhQKYR cue+W4mm3ItFgUgUCarVFBDrB4SunIIQ+AaMBGL4Mk748xhGrCdeHjVuO7YAcKiFCp idcRa318maj2w== From: Jeff Layton To: Christian Brauner , Arnd Bergmann , Greg Kroah-Hartman , Brad Warrum , Ritu Agarwal Cc: Al Viro , Jan Kara , linux-kernel@vger.kernel.org Subject: [PATCH 06/79] ibm: switch to new ctime accessors Date: Wed, 21 Jun 2023 10:45:19 -0400 Message-ID: <20230621144735.55953-5-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230621144735.55953-1-jlayton@kernel.org> References: <20230621144507.55591-1-jlayton@kernel.org> <20230621144735.55953-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 ctime.tv_nsec field is utilized. Switch to using accessor functions instead of raw accesses of inode->i_ctime. Signed-off-by: Jeff Layton --- drivers/misc/ibmasm/ibmasmfs.c | 2 +- drivers/misc/ibmvmc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/ibmasm/ibmasmfs.c b/drivers/misc/ibmasm/ibmasmfs.c index 35fec1bf1b3d..34d41b2a0d89 100644 --- a/drivers/misc/ibmasm/ibmasmfs.c +++ b/drivers/misc/ibmasm/ibmasmfs.c @@ -139,7 +139,7 @@ static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode) if (ret) { ret->i_ino = get_next_ino(); ret->i_mode = mode; - ret->i_atime = ret->i_mtime = ret->i_ctime = current_time(ret); + ret->i_atime = ret->i_mtime = inode_ctime_set_current(ret); } return ret; } diff --git a/drivers/misc/ibmvmc.c b/drivers/misc/ibmvmc.c index d7c7f0305257..b69c978c2590 100644 --- a/drivers/misc/ibmvmc.c +++ b/drivers/misc/ibmvmc.c @@ -1124,7 +1124,7 @@ static ssize_t ibmvmc_write(struct file *file, const char *buffer, goto out; inode = file_inode(file); - inode->i_mtime = inode->i_ctime = current_time(inode); + inode->i_mtime = inode_ctime_set_current(inode); mark_inode_dirty(inode); dev_dbg(adapter->dev, "write: file = 0x%lx, count = 0x%lx\n", -- 2.41.0