Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2048482rwd; Fri, 9 Jun 2023 06:05:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6OnrnZo3V1GvOXb1968yffZ3Z82hR3I+43AbcvS5c8FMyAUI8iGSvywfY1s4glRaGcOoyR X-Received: by 2002:a05:6a00:1a11:b0:643:59cd:6cad with SMTP id g17-20020a056a001a1100b0064359cd6cadmr1418174pfv.24.1686315955061; Fri, 09 Jun 2023 06:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686315955; cv=none; d=google.com; s=arc-20160816; b=t3Vi5zv4GTIpVvGSoj+BJzz0QgpNTJYPfb7iiZswWi6TJ6G5HFlUt46XreIBSMDxXR FdAOxOJIk6/hCICNTAaM+QcCkNU3Yxb+NmKOBQDYkbT4rKF7Ham/OjF3FA6sOrC1ICRg h9+1A526XYi9vuahaWzf0UZrt3gNj0liklFvE4mH/TxknG3c13kIFte8Zmy5AzB8zDTP TuR5XHS+5SDGcHfvFcqNxuNClfiXNbkgVE6AAsCGQIm54ONvydrKdCHAvgcIyltKR4Nk jqExidFPNmqULYQqBxjkqwpGMQXZ8LljjiBoHWy+dDvzxMVupcZAdYa0KNfNDYmnIh8F /n4g== 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:to:from :dkim-signature; bh=ih41qtY38nacB+91OKWU/6GchKODxpdw09IATUod5/s=; b=l/QWnI56VbCrrdjaSW1g1FyTYArrnp/dA23VnJb1/kS+EOmVsPfth5e1p5VY7nXWNy OFot6LAu2kOR6eWzKnlRwSB06mxKM48zb0DYOlpnjbCHNLTj483dJB56Q3eMkVj9AcHq U7YdrFJZ8BMBLrTr0FX/xXLJ/h9KABF/eWTF77rQOtxTxpXdqAJZzQohElpJb5jR9v8H D5GD+JozNJAVTUeFSACrNMFqBPtIugi7gx6RSb2pdJt2AsX9S1b7OCQvzVZ3MnpAysix FEoSXPwGSLu5tGy6/KTW8NTcR5fopgymWTbvFpRtJ1g23GBLy0SU2DHw0hp3uUurufvc No5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pL17Ys+x; 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 f5-20020aa79685000000b006436618b22bsi2431820pfk.155.2023.06.09.06.05.38; Fri, 09 Jun 2023 06:05:55 -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=pL17Ys+x; 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 S240976AbjFIMvf (ORCPT + 99 others); Fri, 9 Jun 2023 08:51:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240938AbjFIMu7 (ORCPT ); Fri, 9 Jun 2023 08:50:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB851210A; Fri, 9 Jun 2023 05:50:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 88EAB657CE; Fri, 9 Jun 2023 12:50:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E30E6C433EF; Fri, 9 Jun 2023 12:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686315058; bh=eQm6Y+zTu/uz0gwuTj+8cXTLw76brE6hz27OGkmXwSQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pL17Ys+xev2bf3DDW+7xcYfJAWx7z6K4f31/nAb0ZLsLdhs2bbtFi6cMZVPnRkQKB DzV0rko+fDQw+TcIOqaFCZkOCSjdfNJ41ZsqHDE0BrCOrVG1Isuy0TO32aszsuIwLr 0RSGldhjy7+CGAZxopzTDZn9gyBdZ1CPs4ydVMZ+x6xnu8w7EeGL/YEVW9x/oCeesT FgJEpqx3Z1RswS8CDghuaD3WXy+canYVY3bCj3Zf0moLeHj7fdPbrXxOpjxvxIC/mR QBcmiIhDE+t/j1iYfJTgMz2pte5jTLIS91rLs7dN00EDoGYcrW8MlgX3v/52Y/jPo7 ds+6I+rxYQ9rg== From: Jeff Layton To: Christian Brauner , Al Viro , Brad Warrum , Ritu Agarwal , Arnd Bergmann , Greg Kroah-Hartman , Ian Kent , "Tigran A. Aivazian" , Jeremy Kerr , Ard Biesheuvel , Namjae Jeon , Sungjong Seo , Bob Peterson , Andreas Gruenbacher , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , Ruihan Li , Suren Baghdasaryan , Sebastian Reichel , Wolfram Sang , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, autofs@vger.kernel.org, linux-efi@vger.kernel.org, linux-fsdevel@vger.kernel.org, cluster-devel@redhat.com, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org Subject: [PATCH 9/9] cifs: update the ctime on a partial page write Date: Fri, 9 Jun 2023 08:50:23 -0400 Message-Id: <20230609125023.399942-10-jlayton@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230609125023.399942-1-jlayton@kernel.org> References: <20230609125023.399942-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 Signed-off-by: Jeff Layton --- fs/smb/client/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/smb/client/file.c b/fs/smb/client/file.c index df88b8c04d03..a00038a326cf 100644 --- a/fs/smb/client/file.c +++ b/fs/smb/client/file.c @@ -2596,7 +2596,7 @@ static int cifs_partialpagewrite(struct page *page, unsigned from, unsigned to) write_data, to - from, &offset); cifsFileInfo_put(open_file); /* Does mm or vfs already set times? */ - inode->i_atime = inode->i_mtime = current_time(inode); + inode->i_atime = inode->i_mtime = inode->i_ctime = current_time(inode); if ((bytes_written > 0) && (offset)) rc = 0; else if (bytes_written < 0) -- 2.40.1