Received: by 2002:ac8:5491:0:b0:40f:fb00:664b with SMTP id h17csp630239qtq; Thu, 10 Aug 2023 11:03:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzSlyXgaWU3g7ZLCuaBJTIaiDUTErVcPjUYzcQAgz8MPX3JqGmfk5OJ/omWvPrHMnLjIhT X-Received: by 2002:a17:903:22cd:b0:1b6:797d:33fb with SMTP id y13-20020a17090322cd00b001b6797d33fbmr3686988plg.64.1691690590793; Thu, 10 Aug 2023 11:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691690590; cv=none; d=google.com; s=arc-20160816; b=GtIiD0O+DX3iQwvoMS5umoJJwYVdgq7Yp87cqLGCebovY3MR5XbPq1Uaf+jJSxvTsA 9aUBr2uoyMKcDkH1U340/zt1eiBeIfMIf+72XC2iAZHuK2IOMG4BA3qtRmuEyKXYt2cz fTFN9j4fQZjxGsJ6g8ldJPp1KTDqD5K30mifcyEzbW/FqKOIUJyJ04rtEJsalTLdpf18 qib/jTnmFI5F7hr8xojyy8mBVHEAYWf+SQx3LD5wcQlXXyrfW/xD4TJCDXvu9L68+xSI UcSbDO1XRuZyihv33g4Lfp+pwFZtKzzChqI0TY1B0fflTtSA0KU5uH8nhb+dCKGiOsFd /LKg== 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=ty85yBo6jJ9HVy0YCYK79Di17PI/yG69ZkwKFyj8Q/s=; fh=gIzuiZeAFUGnoVdxeN6JxwM8rvR6FxTqEkOZINRFVKE=; b=qE5NTegWC7eTz8/xXqUM2EI2eHewwIypdAwz2/5lZWEVgkfu40WELCdsFXuRRngMEy tQaY3Xqv85jAJBVi6IckRTmYTrhvppPW8biyUZcPwsPFS7eU+NPaJa0hXxQNf+2OT5kk 6fhbpTgAo7yPAkNKSYdPU//Hi3Sifpzq8txi8xdpxp3g82ezylFUcSp3HkHPe7hIY2sq cRApjPSRwHjY112ZeP/wzC9A1vXW/CMiZcVBO9dext/ta9UscEDzEm6utJ2vfqzCMiT9 f9SPqzWMBrVNC281mtU4PTOGo+Q0Cxf3+b0cR/6kdE/Zz7jGJVFe4UMLEAwqfg7y/4pk Nbhw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a170902650600b001b9e38b8167si1750121plk.169.2023.08.10.11.02.54; Thu, 10 Aug 2023 11:03:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233517AbjHJRbM (ORCPT + 99 others); Thu, 10 Aug 2023 13:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjHJRbL (ORCPT ); Thu, 10 Aug 2023 13:31:11 -0400 Received: from mail.parknet.co.jp (mail.parknet.co.jp [210.171.160.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E94042132; Thu, 10 Aug 2023 10:31:09 -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 D971D2055FAB; Fri, 11 Aug 2023 02:31:08 +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 37AHV7kP264046 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 11 Aug 2023 02:31:08 +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 37AHV7ZT402781 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 11 Aug 2023 02:31:07 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.17.2/8.17.2/Submit) id 37AHV73Q402780; Fri, 11 Aug 2023 02:31:07 +0900 From: OGAWA Hirofumi To: Jeff Layton Cc: Christian Brauner , Frank Sorenson , Jan Kara , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 1/2] fat: remove i_version handling from fat_update_time In-Reply-To: <20230810-ctime-fat-v1-1-327598fd1de8@kernel.org> (Jeff Layton's message of "Thu, 10 Aug 2023 09:12:04 -0400") References: <20230810-ctime-fat-v1-0-327598fd1de8@kernel.org> <20230810-ctime-fat-v1-1-327598fd1de8@kernel.org> Date: Fri, 11 Aug 2023 02:31:07 +0900 Message-ID: <87r0oan6sk.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-kernel@vger.kernel.org Jeff Layton writes: > commit 6bb885ecd746 (fat: add functions to update and truncate > timestamps appropriately") added an update_time routine for fat. That > patch added a section for handling the S_VERSION bit, even though FAT > doesn't enable SB_I_VERSION and the S_VERSION bit will never be set when > calling it. > > Remove the section for handling S_VERSION since it's effectively dead > code, and will be problematic vs. future changes. > > Cc: Frank Sorenson > Signed-off-by: Jeff Layton Acked-by: OGAWA Hirofumi Thanks. > --- > fs/fat/misc.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/fs/fat/misc.c b/fs/fat/misc.c > index ab28173348fa..37f4afb346af 100644 > --- a/fs/fat/misc.c > +++ b/fs/fat/misc.c > @@ -354,9 +354,6 @@ int fat_update_time(struct inode *inode, int flags) > dirty_flags |= I_DIRTY_SYNC; > } > > - if ((flags & S_VERSION) && inode_maybe_inc_iversion(inode, false)) > - dirty_flags |= I_DIRTY_SYNC; > - > __mark_inode_dirty(inode, dirty_flags); > return 0; > } -- OGAWA Hirofumi