Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3145253rdh; Thu, 28 Sep 2023 04:13:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELPh8WgaNE4jf/aBspC3sn581yCsxYNckafs2/K4p8sl7ZmToosRTM+3+KWBELpaqYg9UC X-Received: by 2002:a05:6a20:7f84:b0:15d:3a10:18c6 with SMTP id d4-20020a056a207f8400b0015d3a1018c6mr717951pzj.45.1695899605195; Thu, 28 Sep 2023 04:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695899605; cv=none; d=google.com; s=arc-20160816; b=B04BglmYlLn44LgCEc4bIbmU+gGqkLaytp3ylSwwXmScTo7hRoeQqahrzLijCvpGTz VToQvUWwyy6NpQICZ7Gih6lfHhqL8RHv1qbYeocpaXbGlVK96XJy+/mp2JftKPwCl4gt rH8DbDM5QpP2XdHsCB3AteSzQOv8xv2sQCcMvv/HlhEs5ZmaE2bZ6O0IUkBqbOv8Wj/I ZNgQGCRC9JSvbmcZ9PW3xXo8ZKnLpmUAaTiHYdGb7y873EzZywwRVJDgPIMNz5mFj9EX 1FiznUCJ7ob3IiAYZjySbVYF4bF3iL4SnN1egkldR2IpJu/3JYeGd5sHUlF7aDQIeWjo MDZA== 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=zwfti0XbvS64PXykdGN51/D6h5+OK/O+TJQOcQu4e2k=; fh=70aaKBzl/J7Fv9lk1MDJ485OMLrwSYhU+Uf1I70AYak=; b=qWub6nNzfrCJ9Rox7hQe9SPCBnaWtlOCLLrf4obpxBxDpIp9PFpm8aU+5Czzeeg6P3 3DXLhPFCus+E7WLUGgw4x9zPjrrv8d4WTQsrFaW3Bn33skFJUrW1r7T6T3svRudFSGhW DHK/0NBzg8RrPEh+brdnyC7K8dnxYUy7jZgM/fZ6cwZfSJ1ZipASh38H5jHWoJQfsqku hSv9MndTQt6Ji8vDFw0y6iGzUo+U28zVOFuJusjbf40bQ+yuLADUR/DZYU9XWO23IDI5 V+PldYZi+F0LtHr2tkw7w+CyB5IOVJmPVmooMgBOIFzEzmoo35/Bf10xtKYPWl/25PYg J/XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L5QgKS9W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id c21-20020a17090aa61500b002776c8df9b7si8633929pjq.144.2023.09.28.04.13.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:13:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L5QgKS9W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 75886822E551; Thu, 28 Sep 2023 04:09:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232357AbjI1LH4 (ORCPT + 99 others); Thu, 28 Sep 2023 07:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232148AbjI1LF4 (ORCPT ); Thu, 28 Sep 2023 07:05:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A9B510C4; Thu, 28 Sep 2023 04:05:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F72EC433C8; Thu, 28 Sep 2023 11:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899102; bh=SmTKj23nuBjnbVRWTNodKzI7DTaJuxdAze07oBOhrrI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L5QgKS9W7u596mXt8KF2kGCF40fQKt3AAdokcCeWA/jCXHC6cCL3EiH0HTC6hpVNh jg/9vxbojQzwyPjMI+uWdIktjRu5n4c9p4vp3127MYw2QK/BxQrQFzOjqgr8+eOLyP qDmXAX8zaxb22aHsML8eUME9AI49KprABJli7zFNSYyM6kQyEMUiYJ2LQDxxRbFzBd GUUs3SaFGffhXSR05lYBiXnt1RX1Ub0tcCi6Gr/RANngVZhKHaYJxbT1rNiq/zO5L2 thx2c6ofSj2cpUam7Eckec2ZknPAVVU7bKgpxcvifXGifxRY1xgkkkMWB3be1PtxRC CDo8DKQZwTJxg== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-um@lists.infradead.org Subject: [PATCH 42/87] fs/hostfs: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:02:51 -0400 Message-ID: <20230928110413.33032-41-jlayton@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928110413.33032-1-jlayton@kernel.org> References: <20230928110300.32891-1-jlayton@kernel.org> <20230928110413.33032-1-jlayton@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:09:07 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/hostfs/hostfs_kern.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index dc5a5cea5fae..ea87f24c6c3f 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -513,10 +513,14 @@ static int hostfs_inode_update(struct inode *ino, const struct hostfs_stat *st) set_nlink(ino, st->nlink); i_uid_write(ino, st->uid); i_gid_write(ino, st->gid); - ino->i_atime = - (struct timespec64){ st->atime.tv_sec, st->atime.tv_nsec }; - ino->i_mtime = - (struct timespec64){ st->mtime.tv_sec, st->mtime.tv_nsec }; + inode_set_atime_to_ts(ino, (struct timespec64){ + st->atime.tv_sec, + st->atime.tv_nsec, + }); + inode_set_mtime_to_ts(ino, (struct timespec64){ + st->mtime.tv_sec, + st->mtime.tv_nsec, + }); inode_set_ctime(ino, st->ctime.tv_sec, st->ctime.tv_nsec); ino->i_size = st->size; ino->i_blocks = st->blocks; -- 2.41.0