Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3151378rdh; Thu, 28 Sep 2023 04:24:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIEmHc+Qjc+eBj+E7TYtcWAY+xrij8TV6q9tq7FXScq1EM1jgFMMLXtIlLmKkFOaMkobIP X-Received: by 2002:a25:7396:0:b0:d80:68d1:b826 with SMTP id o144-20020a257396000000b00d8068d1b826mr901178ybc.6.1695900299315; Thu, 28 Sep 2023 04:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695900299; cv=none; d=google.com; s=arc-20160816; b=M0GFCC8zMhGjPVSBHcyXskunuADXJe8qGx6kh+8X4gVVfzN7rwVCkhSEWyFql6cEAy +aRyzGyeG5trz6alDNF2vlW6gUC9mIvveqPxHNJlIq+sWCubWYawnBr7iS6Q3z494iH4 3UYTg0vCkFieZONQE+swI890Ad9nrfXPIAxi1HxUX1wAJfaA7SFs5/6/6pIcaa/RXzTa t1X+rpZ3B+9HFMNiTWX7xwpyYX/hWzxUyPjJOR8sfbvm+S17YbUBTBtpEf3q6io3eloX KCCjraMI9uZIZ4N2XduDftke42HHrXiglsfJL/EeV0Z5kBi7+TFFBclNMDOttHOIhyeC c3Pg== 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=t0Fz6mzsGi5Ur0Y0DeesvvfOQfH6F3OB+otZ6BnT4bQ=; fh=5fhsb7mGODlpL95j/1iQ6ZPX/BoBMAWQ3hWfXH8zC1o=; b=OIDBmZ0xcgXkV0uLWlS2Xk+K0rQb9yKGCLWKf6EaYvpC6a8Bnc+gRRazIPqSW691+W go99ySYvsc/i+6vAHsTIkeixJed7SbpwGby9NiENF2OL7+he8MqEAbPDtkAQlXeeRhOp t1tn3QuMVl424F/Vgk3IB8UpMq823CVHC2Xv4gYamlHxp3Jn/iHo5SaxdWslMENYiHne Rg4D6Hu853UTuAuF0dx/2bT29l2zaW1pB5xJBR3JuIeXagXWr5F3GQdNfE5JZjpJa3MZ fnSoB2Zm0XF6iFLIZzPn6M6MAIRiycaDzYsiWD7YtpHvsKGDEkRY2UkPATJUuOUE7ju2 uz5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KfyaUQBG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id v135-20020a63618d000000b00578b5364e80si14446292pgb.557.2023.09.28.04.24.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:24:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KfyaUQBG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 7D55C8347BB9; Thu, 28 Sep 2023 04:11:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232447AbjI1LKQ (ORCPT + 99 others); Thu, 28 Sep 2023 07:10:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232334AbjI1LJ2 (ORCPT ); Thu, 28 Sep 2023 07:09:28 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D72419C; Thu, 28 Sep 2023 04:05:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20470C433C9; Thu, 28 Sep 2023 11:05:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899134; bh=14gzqF/vqBJ7lLHQtJVC0eAe1MKwKnBy8jzKUgJf0XM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KfyaUQBG7VWCB64WApXpej0ehV8q05W0VBDKrxKlzrmtE8TiiUjHze62R5XqwD4Bu rnSNSrE/lEM9ddmWodzJNVE+tNYlHRegbdFOPTlXT+4U4ziFdZQTbm2TF/2d58w0Mc GLb3HeY9DGUAEEcQOmam3WG4/eYp0KVxn98+xpcvS/D0VoG1ukg0y/eUn7LdMRKkhS 8eZo2lq3V/A3AxvpbGtboFU/89PRMOMKs2kmB9RKGrvglQh7o5gJbTZbwumZ6sxvBP qVmA6e9U2PqQzPLYESrFSd1FPQWuFoZLpNp3iwgIVg3LVDpxQthOEsxQGczZmiX9YN xupDVTfN4xF7w== From: Jeff Layton To: Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Sergey Senozhatsky , Tom Talpey , linux-cifs@vger.kernel.org Subject: [PATCH 68/87] fs/smb/server: convert to new inode {a,m}time accessors Date: Thu, 28 Sep 2023 07:03:17 -0400 Message-ID: <20230928110413.33032-67-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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:11:56 -0700 (PDT) Signed-off-by: Jeff Layton --- fs/smb/server/smb2pdu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c index 544022dd6d20..581f1deb1a03 100644 --- a/fs/smb/server/smb2pdu.c +++ b/fs/smb/server/smb2pdu.c @@ -4797,9 +4797,9 @@ static void find_file_posix_info(struct smb2_query_info_rsp *rsp, file_info = (struct smb311_posix_qinfo *)rsp->Buffer; file_info->CreationTime = cpu_to_le64(fp->create_time); - time = ksmbd_UnixTimeToNT(inode->i_atime); + time = ksmbd_UnixTimeToNT(inode_get_atime(inode)); file_info->LastAccessTime = cpu_to_le64(time); - time = ksmbd_UnixTimeToNT(inode->i_mtime); + time = ksmbd_UnixTimeToNT(inode_get_mtime(inode)); file_info->LastWriteTime = cpu_to_le64(time); time = ksmbd_UnixTimeToNT(inode_get_ctime(inode)); file_info->ChangeTime = cpu_to_le64(time); @@ -5406,9 +5406,9 @@ int smb2_close(struct ksmbd_work *work) rsp->EndOfFile = cpu_to_le64(inode->i_size); rsp->Attributes = fp->f_ci->m_fattr; rsp->CreationTime = cpu_to_le64(fp->create_time); - time = ksmbd_UnixTimeToNT(inode->i_atime); + time = ksmbd_UnixTimeToNT(inode_get_atime(inode)); rsp->LastAccessTime = cpu_to_le64(time); - time = ksmbd_UnixTimeToNT(inode->i_mtime); + time = ksmbd_UnixTimeToNT(inode_get_mtime(inode)); rsp->LastWriteTime = cpu_to_le64(time); time = ksmbd_UnixTimeToNT(inode_get_ctime(inode)); rsp->ChangeTime = cpu_to_le64(time); -- 2.41.0