Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29492989rwd; Wed, 5 Jul 2023 12:41:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlEd6oGxbC55QwiwTQ65tupe5flZ2QKX+/PC3vzF/gYhuMq7wv1Jxtl8rtuDZ2BGydi7gGbq X-Received: by 2002:a17:90a:fa18:b0:263:a6a:49b8 with SMTP id cm24-20020a17090afa1800b002630a6a49b8mr9941729pjb.3.1688586080535; Wed, 05 Jul 2023 12:41:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688586080; cv=none; d=google.com; s=arc-20160816; b=hfFnnwib5/pd4rAvLwWf5B4oD3L05eDvaVSQfaxz7eiJJfuQAMT0ejP/GZ4aMlI7Pa zItgMfK0LjIKIZIJSUYkxNpXdM5P5+3cCCVeN/ZryHs9J4KDpSd2IOW5mTNMn94iJGcg dJH1QX7UzxTBT9gd2eMX9tkwtk+D5fAZk+FcQ9hgF72/00U2FjRnM4ug9BCdazdAQ4kI 45+StR6BZ9vUeIP78ozuhXvZVBzEtCFDeNsNwDvBt/7/3N58/wR/LnLXWGFyqCt9QC9A UVPaugZCxqm00++4vkWXq1qtu1NLArxvmDTASrNZMjfJ4PPnvM8uQSSWKD22Ytl6ZOTb E4Og== 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=dPEvlZwcR7Jt/H4Q7r5BIirCtUKxrr0GEVAyp4Yjbzw=; fh=5DleK0e8Ivq2joyoLCwvGwQnhxUz06pERp7VYRDnmPU=; b=RqHLSaFHAVxa0Sq6Zz19Y54MceeWv35Y4WrkENmU17WIRnPLoBVJJBknMdiKx9efBB u42MHWf4mv7Nz1hLO87YhxFtqQo7jYjt8eL3KqJZy4tanwfmr1auzBDaRwHr4XFRGDCO p0Oflbm3lB+BmSab1FePbTkWpzjRfpODCD2F517X9aNnYxFE0E1gseB0XVFyLwn2Wem+ OJFENWQgIg4GSSy7/umFfMx8jZTgssi0dU/k68QIWvJBGNcE1Jzd4A5MMxASeMdWmh1M SkG7d5qk4Li23I49MyGeoMf0YMyWpi2phjsbkJYeK2xzoSyjXbhcaq125sMQFznV/qZ8 2Ugg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QkIfF+Sd; 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 w29-20020a63161d000000b0055bc3404854si4413538pgl.757.2023.07.05.12.41.05; Wed, 05 Jul 2023 12:41:20 -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=QkIfF+Sd; 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 S233883AbjGETHi (ORCPT + 99 others); Wed, 5 Jul 2023 15:07:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233815AbjGETGn (ORCPT ); Wed, 5 Jul 2023 15:06:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9DD81FC6; Wed, 5 Jul 2023 12:04:33 -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 89BCA616F4; Wed, 5 Jul 2023 19:04:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2349FC433C7; Wed, 5 Jul 2023 19:04:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688583873; bh=Q07agmN+3+t14XXRG6FKQDnwU5RN+rMKtJn4NHdEWos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QkIfF+SdhLDlA6hyjj0ReVT8TuhVzupOEUrHVW1NoCL0TKXJ6VhiTU4HAAY9HUPxI EIlpEW655H87oQuluOyUe84GuJS3XSH1DmOCPy0l2+r1UCkn2c0Ys6DBxzdeZxF/CE 4zI97zX8fF44I5BUOzZfc7IxAf4k1wTpTy0CfO7rFSdvWIQ+tFpDRxtE57mD0ZPsbM SFRhL8QogFgK4DkrTPfL+fjPJN0squ60mBnqmQ1OspfOoKhnxEdanEUc5C2dgTmX7i yvOMmEzu6ZSg88WKi/2glAMJh/J51GGR3EeFgBaohUXR2oTe0PRe8IfW9NBTioLufs THtBLd8+7Xeqg== From: Jeff Layton To: Christian Brauner , Richard Weinberger , Anton Ivanov , Johannes Berg Cc: Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-um@lists.infradead.org Subject: [PATCH v2 50/92] hostfs: convert to ctime accessor functions Date: Wed, 5 Jul 2023 15:01:15 -0400 Message-ID: <20230705190309.579783-48-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=-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,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/hostfs/hostfs_kern.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 46387090eb76..182af84a9c12 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -517,8 +517,7 @@ static int hostfs_inode_update(struct inode *ino, const struct hostfs_stat *st) (struct timespec64){ st->atime.tv_sec, st->atime.tv_nsec }; ino->i_mtime = (struct timespec64){ st->mtime.tv_sec, st->mtime.tv_nsec }; - ino->i_ctime = - (struct timespec64){ st->ctime.tv_sec, st->ctime.tv_nsec }; + inode_set_ctime_to_ts(ino, &st->ctime); ino->i_size = st->size; ino->i_blocks = st->blocks; return 0; -- 2.41.0