Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30649890rwd; Thu, 6 Jul 2023 08:47:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlHSm2Jx6sSPDYW+wtfaB6BCdDTIKFTILI8I92f1bJYGtTOyynKzy9XWlHWcxKuc+OpjVAGE X-Received: by 2002:a05:6a20:605:b0:106:5dff:5dc6 with SMTP id 5-20020a056a20060500b001065dff5dc6mr2100255pzl.16.1688658425256; Thu, 06 Jul 2023 08:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688658425; cv=none; d=google.com; s=arc-20160816; b=aXJC3vlWeD1FLLgMyGBlJVLHI+lGUOtUdbn7dfoUj3nx5ls/wgPF91aJMkYy0UMyWA q3BY4isaE4kHdwMxkeeWLX2kuOs4dILDYd3QCBWvMAddAaf0pfqORkZd+91nbJDhGv40 1G/p81+g+M5HLYVc2UrwzShRpqPzdOjK1BvoargpZWYiLkjYMNzpRLavS2VWNNdQwiOs kAZ7L0pnzBse4B47JKW+q0xki6Etv2uo79RJ0cYolnO6UHQWL/DXGicrlfLru8kIgs1O szUZPvq+djOlqJ3pmnXghr0WUG/AgvePHiPB/ysPnjgUmAzQwAVfUXWdMf8cPT6RybIO +RIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=XtfE8VfL9/Ahx6GTmCZcc9TQkFw8X5Q1Xxl7Qq4Ume8=; fh=H6sDDrlMuUMGliw/Zv+emXl+Nqkk8Eq7GluHvGSBm+0=; b=yI+SnbquU72v2x1HZKsftw5vWSRUeV8xuVCgprDdGojy4A2iZ0XKfyIcvhClsqt8/3 PZC9TXRKYnz8viSeqZWNd1PhyvgiJmz5fAJH78eH7GTbaZA94GeGLZ0PjivcztYhvHpc /XhKiWj4I6oagh7RnGDniGdPvcPeDNoX64pFpr4AaI5uIkHa8whSulJSLvoQB1bhgLij XdPnXHPULtxFxEvzHwn5g+FZDyX89YTrU7gmAtXuCbRoXal0d3qdo5JW1lUW1GhjZBdp McUmMr/wbNvMDfsIoSbpoENr6GpnwiZglEvD9D3neWmHlp7bdiE92kIguOoZXSUhmoBx p5yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=LTBnJxGZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds4-20020a056a004ac400b0066733d71d01si1587897pfb.317.2023.07.06.08.46.52; Thu, 06 Jul 2023 08:47:05 -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=@gmail.com header.s=20221208 header.b=LTBnJxGZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232728AbjGFP0e (ORCPT + 99 others); Thu, 6 Jul 2023 11:26:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232523AbjGFP0c (ORCPT ); Thu, 6 Jul 2023 11:26:32 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 704A81BD3; Thu, 6 Jul 2023 08:26:31 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2b6a6f224a1so12581291fa.1; Thu, 06 Jul 2023 08:26:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688657190; x=1691249190; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XtfE8VfL9/Ahx6GTmCZcc9TQkFw8X5Q1Xxl7Qq4Ume8=; b=LTBnJxGZbM5tJrSwF7zMiCvZrBbFIXzGc2+8VjuqKB3TGKuwP1XsiInHM0fNIBD92N gzzSYp/oYWe9FOvaUgP8y0jNwkn5E65nddSeN68DYLA/PsT5q9jw8vgSwMRIJI+xeT4L PNcFD4TssHnjH7SNR3ZZ8jnh2AWRfFgHXooYsrdv9EjVY+hGdVureO9CzMYfOlaurB5H dxfy8Dtn4WZiNrSfO01h6J4HA7roCuKz+GKc6ZxID5BB/JSWD6emzEpuyuBEKPVX171B J1RPmTkas8vbpZvLa98wPqtXW0utJh43fDFqm2F4MIItA+fcVJUDW3qno/JFF/vlzCCq lfRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688657190; x=1691249190; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XtfE8VfL9/Ahx6GTmCZcc9TQkFw8X5Q1Xxl7Qq4Ume8=; b=BswOXBngYgdPfjuO63Z33MuEHUKqxnAvEoM6MNUMAzW2DoTUyT/PX0RH58esVtOiE9 C8Bl5Yx5bWX5hgIF2/t1dtXzYwaKusBTQDqvyh1WidsvKXXIl+r9IpKVSgNWOG5w+wpH JybzaYzeaLj/p6+Cv9t8K+HQCY6S0tl4clYPdMX2rS8E9sKkwK4oSYC0oxxxHEZSi/2y 9O6khKwb7SgG0Wvf/f41RGF9iu4cyegnOqMeXVmtugiyDCDTNZmk6MOViX8KqRkD8oaP DJDuekJmn4exFFU+86CCcpN2Hc1Oi4z/hnTeL/54pwpKsbEM84w3RfGbj8pqH4merE23 HUsg== X-Gm-Message-State: ABy/qLbb3vB5ffm1NRREODtwexuyGR8vUe9utSiPFtpA76rlhad23omA zVcxah/hhuiG3R4zAMx8iYEWeFqxrxeFwuqp+7k= X-Received: by 2002:a2e:9c95:0:b0:2b6:c16a:db06 with SMTP id x21-20020a2e9c95000000b002b6c16adb06mr1741654lji.39.1688657189389; Thu, 06 Jul 2023 08:26:29 -0700 (PDT) MIME-Version: 1.0 References: <20230705185755.579053-1-jlayton@kernel.org> <20230705190309.579783-1-jlayton@kernel.org> <20230705190309.579783-6-jlayton@kernel.org> In-Reply-To: <20230705190309.579783-6-jlayton@kernel.org> From: Steve French Date: Thu, 6 Jul 2023 10:26:18 -0500 Message-ID: Subject: Re: [PATCH v2 06/92] cifs: update the ctime on a partial page write To: Jeff Layton Cc: Christian Brauner , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Al Viro , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Reviewed-by: Steve French On Wed, Jul 5, 2023 at 2:04=E2=80=AFPM Jeff Layton wro= te: > > POSIX says: > > "Upon successful completion, where nbyte is greater than 0, write() > shall mark for update the last data modification and last file statu= s > change timestamps of the file..." > > Add the missing ctime update. > > 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 879bc8e6555c..0a5fe8d5314b 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 =3D inode->i_mtime =3D current_time(inode)= ; > + inode->i_atime =3D inode->i_mtime =3D inode->i_ctime =3D = current_time(inode); > if ((bytes_written > 0) && (offset)) > rc =3D 0; > else if (bytes_written < 0) > -- > 2.41.0 > --=20 Thanks, Steve