Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp116215rwl; Wed, 9 Aug 2023 11:48:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFYzUjv7CP476ySgPjA1qkGkgjzT4IRJhHIL/JrfbvSSGd5/dINBtrFuVAeH9YD0VKB8vdb X-Received: by 2002:a17:902:b7c5:b0:1bc:7a4b:5c68 with SMTP id v5-20020a170902b7c500b001bc7a4b5c68mr3331012plz.39.1691606904033; Wed, 09 Aug 2023 11:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691606904; cv=none; d=google.com; s=arc-20160816; b=ySD5dsPCMjXNafio4vcTzpjTHXt656j4np3PF2FLs6lHKteKNmA0FW8fM153KgRSzL 3JtV9sEwFtCF0PI+vx0FbRx4qp/Mi0k7LEc3e/EDPe/HngiGnn+5kKR770ELUxB35F6g RGrV8P2ga0GR2sY/81G8k2Tl7vN/aFQRVksXyCMUAK8BIpXmpfUZlj52pmXpONB/jkn9 8cp5JPweYTkOZVe+1PlZ3EL6Afsz1cvvJrnQFPcUJvTLK1A5fnmlierWLCd/46IkS+KY oQKQgBpHCOP3gzv1Pqxpeaov/fp6d5sH3CvlmYAIj2RDoZiqDcEwUkNw1GBHDXScwK9H AG0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from; bh=hKb+FAF2A8bRt+pjsstHRsoonTacXONVkaT4q8VR9Os=; fh=bJlJjuOzgKNakDA51gnvjMNidwP7gcimZv75hI7f4rM=; b=gBFxJLysXeO96AHqRrbnHmUOP9EhY2BBtES8rv7kxbvunc6hrnzrlRa+eU1FCRH/NB /JO4Dg3KOlQkaB7J/IrACL78modR5+F4xTRNdmSDD1h1K2R3SnMG5arcPoW3RDs7gXFw NRczaJkMNlpzRXMrsgWWa2EpHDW+fgAEylzbReE+eSCLC6gud9TeMW88IUOMVppejl4+ zqrKHMR+2YCX9KuSV+UCnLFyp4tW1zlmXtG2CFbnEzb+tEQuKMecG1MPzYTnejMRShNy UAyNQlycgVACoZgWnm+JrWWh/wXAF+PM3vL1j4IXtU6Ao8zyuHWdz8QVUkrVnDPWGnOv qQqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a170902ce8200b001bc35017804si10292858plg.443.2023.08.09.11.48.06; Wed, 09 Aug 2023 11:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232364AbjHISbo (ORCPT + 99 others); Wed, 9 Aug 2023 14:31:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232245AbjHISbn (ORCPT ); Wed, 9 Aug 2023 14:31:43 -0400 Received: from mail.parknet.co.jp (mail.parknet.co.jp [210.171.160.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6F5CE1FEF; Wed, 9 Aug 2023 11:31:42 -0700 (PDT) Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id 929122055FA6; Thu, 10 Aug 2023 03:31:41 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.17.2/8.17.2/Debian-1) with ESMTPS id 379IVe0p224267 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 03:31:41 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.17.2/8.17.2/Debian-1) with ESMTPS id 379IVeNg228005 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 03:31:40 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.17.2/8.17.2/Submit) id 379IVaAM227997; Thu, 10 Aug 2023 03:31:36 +0900 From: OGAWA Hirofumi To: Jeff Layton Cc: Jan Kara , Alexander Viro , Christian Brauner , Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , David Howells , Marc Dionne , Chris Mason , Josef Bacik , David Sterba , Xiubo Li , Ilya Dryomov , Jan Harkes , coda@cs.cmu.edu, Tyler Hicks , Gao Xiang , Chao Yu , Yue Hu , Jeffle Xu , Namjae Jeon , Sungjong Seo , Jan Kara , "Theodore Ts'o" , Andreas Dilger , Jaegeuk Kim , Miklos Szeredi , Bob Peterson , Andreas Gruenbacher , Greg Kroah-Hartman , Tejun Heo , Trond Myklebust , Anna Schumaker , Konstantin Komarov , Mark Fasheh , Joel Becker , Joseph Qi , Mike Marshall , Martin Brandenburg , Luis Chamberlain , Kees Cook , Iurii Zaikin , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Sergey Senozhatsky , Richard Weinberger , Hans de Goede , Hugh Dickins , Andrew Morton , Amir Goldstein , "Darrick J. Wong" , Benjamin Coddington , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, v9fs@lists.linux.dev, linux-afs@lists.infradead.org, linux-btrfs@vger.kernel.org, ceph-devel@vger.kernel.org, codalist@telemann.coda.cs.cmu.edu, ecryptfs@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-nfs@vger.kernel.org, ntfs3@lists.linux.dev, ocfs2-devel@lists.linux.dev, devel@lists.orangefs.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-mtd@lists.infradead.org, linux-mm@kvack.org, linux-unionfs@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH v7 05/13] fat: make fat_update_time get its own timestamp In-Reply-To: (Jeff Layton's message of "Wed, 09 Aug 2023 13:59:26 -0400") References: <20230807-mgctime-v7-0-d1dec143a704@kernel.org> <20230807-mgctime-v7-5-d1dec143a704@kernel.org> <87msz08vc7.fsf@mail.parknet.co.jp> <52bead1d6a33fec89944b96e2ec20d1ea8747a9a.camel@kernel.org> <878rak8hia.fsf@mail.parknet.co.jp> <20230809150041.452w7gucjmvjnvbg@quack3> <87v8do6y8q.fsf@mail.parknet.co.jp> <2cb998ff14ace352a9dd553e82cfa0aa92ec09ce.camel@kernel.org> <87leek6rh1.fsf@mail.parknet.co.jp> Date: Thu, 10 Aug 2023 03:31:36 +0900 Message-ID: <87h6p86p9z.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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-nfs@vger.kernel.org Jeff Layton writes: > On Thu, 2023-08-10 at 02:44 +0900, OGAWA Hirofumi wrote: >> Jeff Layton writes: >> > That would be wrong. The problem is that we're changing how update_time > works: > > Previously, update_time was given a timestamp and a set of S_* flags to > indicate which fields should be updated. Now, update_time is not given a > timestamp. It needs to fetch it itself, but that subtly changes the > meaning of the flags field. > > It now means "these fields needed to be updated when I last checked". > The timestamp and i_version may now be different from when the flags > field was set. This means that if any of S_CTIME/S_MTIME/S_VERSION were > set that we need to attempt to update all 3 of them. They may now be > different from the timestamp or version that we ultimately end up with. > > The above may look to you like it would always cause I_DIRTY_SYNC to be > set on any ctime or mtime update, but inode_maybe_inc_iversion only > returns true if it actually updated i_version, and it only does that if > someone issued a ->getattr against the file since the last time it was > updated. > > So, this shouldn't generate any more DIRTY_SYNC updates than it did > before. Again, if you claim so, why generic_update_time() doesn't work same? Why only FAT does? Or I'm misreading generic_update_time() patch? Thanks. -- OGAWA Hirofumi