Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5747972rwb; Wed, 9 Aug 2023 08:36:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEsc8VDUCICdu6CdWQKMwTuRKf7f/wnDR1v2Te2XpbATabJMrMn9POicWskP11AuGBrhU0t X-Received: by 2002:a17:902:8308:b0:1b8:d32:2cd8 with SMTP id bd8-20020a170902830800b001b80d322cd8mr2650278plb.55.1691595389219; Wed, 09 Aug 2023 08:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691595389; cv=none; d=google.com; s=arc-20160816; b=WPhNDIAjTJS96eI9E5iw3EWBIaQcihQiHquDWLpB7Jjg0nhf2Qfb2ERWm2yoGuji5g sP2lUtiwh3Ty9uuKjaUWELMll//xejdhF0v9Ed/yFaNfkF7TSD56dclyXWn9FGZDjshn lCfRlo4RXfmZkVEl8wSjlPpA4JJSaV4oP4ni6EyHAQbODMY32kZKMZeAX8CvIEa63yLP 4YzRj7si11poWPp/MYpqKoFXbFGJY/5zwxyYFZV1cmESW00zhWbsuIgfMXj5Wm8Zctpj BXRRHbtYTMgzdXyOeL0x0HCycjzfZ+2+0BmtvmB9Vn5rO4zFTda3c9aNTQFcwyVbYkRm wdwg== 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=sRQCEDMCeocP5LvsTIIrU6gav2mEfed7GKR/ETVoDA4=; fh=KD/LhvL/gU68ZGWlAtUoUnprF6L18UKzkoDAz0P7ndc=; b=1ATmRZNcx/917NBCR8+v7UHQz3PE4iNE8+B9lfF0642wcgZPmCA3yKsgGJTsVUEgdV HqSO1MmvSJj+2MJKWwqL6KUp+s9vxi4zTYCiQFaxpnZ97gqFY9RhbhOq4EaJo2VY/5D5 o54630uAHBF+4xWBlWa9uyjmBLWAiZhPiJDO9ll6QHrSdhec0Gaxssg1+Sd0fIfm39nJ j1gRTVreouxwOSb8gZhK+Vf2uwBUh7JCB7QYQ8FUZPyjE5PPhAInPZzNFZfntiwF3uuF OTYcIXHwvMOt4smczJLqnlq4Bc0Xtpxf7cAqYPYuXlAFk8P/5ioxXGG7cF1mQt5cBGwC YiXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 y5-20020a17090322c500b001bc671d6d15si6370559plg.614.2023.08.09.08.36.15; Wed, 09 Aug 2023 08:36:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231737AbjHIPSE (ORCPT + 99 others); Wed, 9 Aug 2023 11:18:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbjHIPSD (ORCPT ); Wed, 9 Aug 2023 11:18:03 -0400 Received: from mail.parknet.co.jp (mail.parknet.co.jp [210.171.160.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B45DCFE; Wed, 9 Aug 2023 08:18:02 -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 E5C652055FA4; Thu, 10 Aug 2023 00:18:01 +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 379FI0T9218787 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 00:18:01 +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 379FI0wR202859 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 10 Aug 2023 00:18:00 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.17.2/8.17.2/Submit) id 379FHvZ4202846; Thu, 10 Aug 2023 00:17:57 +0900 From: OGAWA Hirofumi To: Jan Kara Cc: Jeff Layton , 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: <20230809150041.452w7gucjmvjnvbg@quack3> (Jan Kara's message of "Wed, 9 Aug 2023 17:00:41 +0200") 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> Date: Thu, 10 Aug 2023 00:17:57 +0900 Message-ID: <87v8do6y8q.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-ext4@vger.kernel.org Jan Kara writes: > Since you are talking past one another with Jeff let me chime in here :). I > think you are worried about this hunk: Right. > - if ((flags & S_VERSION) && inode_maybe_inc_iversion(inode, false)) > + if ((flags & (S_VERSION|S_CTIME|S_MTIME)) && inode_maybe_inc_iversion(inode, false)) > dirty_flags |= I_DIRTY_SYNC; > > which makes the 'flags' test pass even if we just modified ctime or mtime. > But do note the second part of the if - inode_maybe_inc_iversion() - so we > are going to mark the inode dirty with I_DIRTY_SYNC only if someone queried > iversion since the last time we have incremented it. > > So this hunk is not really changing how inode is marked dirty, it only > changes how often we check whether iversion needs increment and that should > be fine (and desirable). Hence lazytime isn't really broken by this in any > way. OK. However, then it doesn't explain what I asked. This is not same with generic_update_time(), only FAT does. If thinks it is right thing, why generic_update_time() doesn't? I said first reply, this was from generic_update_time(). (Or I'm misreading updated generic_update_time()?) Thanks. -- OGAWA Hirofumi