Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1223042rwl; Thu, 10 Aug 2023 08:07:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEU7F7caVOjGPU+PTw4L/hkgzjj00GbIxqhztDvq2N4ITubWGjLQQQojE09i7ZFlMH8nYA/ X-Received: by 2002:a05:6402:33a:b0:51e:362d:b172 with SMTP id q26-20020a056402033a00b0051e362db172mr2294737edw.32.1691680075665; Thu, 10 Aug 2023 08:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691680075; cv=none; d=google.com; s=arc-20160816; b=xyUXo+g1ucAGES3KJyAREffyBhx/rVQY1asqza6Pq/ssXD8ZjkqVDLDUwWmPxIuq9b /bIUV2QyHA5Lj9DNNnhjMz7J0Q4ge/NuOP0M9D75mty1teWNec/wQ8iRlpVXi26Klq9y 1THIQ96UmKPoFA2w6z9H3wuNlHsxEFyb4GPufWLk0/ESwy7MbqNci+H2WKrvGYIjcmIh TFKbUuvxBtlboucgs/nQUV6rSRaN5EX/0ocj5q9DqcCOR419fn+RzIJRgjw2OoKU6kWj TqjswX71R/J/jY3hknpONOpEYoD1g2F/SiCbhVEQPAK/cpWJcEid2A8mGK/A1djkmyea FZ9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=/Odcv0eOJAvYvLqQ3V9A0vveLhJ6HJBOtwnTBYXFgak=; fh=zG3UFWmPYRH5SwJlZAKQfYjBiPHiGoLh+aOf+oGsCOU=; b=04XVz+OQyowYty9nPlpq45z/9TjbnGsRwCuTJTBIJ/psPCNoHm4gVO7Aw87w6v3+9T Ekp6IFKcIMiPW6OFSIR0R3DnEwXrp02zRDF3u65OxgLIrfiQOKcUROHIpTAlK0/vJafo 5EJuBSMI4rc0JzC+IqyGE7u887oTcPmzrSXrC+PYhcBmB8rBPGXkHX34okx3pwKINvNs QERg87X6H5arW0xhMHqUtF9NeqvJJwGD65FfZfNG1hCUajGys5hMqStqypfpM74Bh+uo 6bV7GRJoPJ0KbeSMx9F8Lzik0nJ6anDVepaM62MUBqL69Ea1Vs5MnM0w95x2yjxkbfjp 96kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=xrQMKNxv; dkim=neutral (no key) header.i=@suse.cz; 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 b26-20020aa7c91a000000b00523703a8793si1559548edt.181.2023.08.10.08.07.15; Thu, 10 Aug 2023 08:07: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=@suse.cz header.s=susede2_rsa header.b=xrQMKNxv; dkim=neutral (no key) header.i=@suse.cz; 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 S235102AbjHJNWJ (ORCPT + 99 others); Thu, 10 Aug 2023 09:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235391AbjHJNWF (ORCPT ); Thu, 10 Aug 2023 09:22:05 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 074C92691; Thu, 10 Aug 2023 06:22:00 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B4C9A21866; Thu, 10 Aug 2023 13:21:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1691673719; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/Odcv0eOJAvYvLqQ3V9A0vveLhJ6HJBOtwnTBYXFgak=; b=xrQMKNxvThXckQEJJYKIi91J5WuBLaQjoxQfCIaYnTB8TvCKRpGOqaX37eI4Ly4sm0+Khk zAHktKylu0V4e1qaBJyHqHEZTVScE7aHVzpN4N3kjKo5pdeqWcdh9euohpGTQ6w8sRUETP tNzWxnNmYsvffsMdm9kQPxFQZAx4rkg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1691673719; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/Odcv0eOJAvYvLqQ3V9A0vveLhJ6HJBOtwnTBYXFgak=; b=W1xhEVJRC2hmvV6h/g2FqVLGwKKkEnc9n24+VNOC7p0wQ8Rhq54iBAxiVVJiDLMzn9rnrS tJcuHnaVuE637HDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A8436139D1; Thu, 10 Aug 2023 13:21:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QdEJKXfk1GTLaAAAMHmgww (envelope-from ); Thu, 10 Aug 2023 13:21:59 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 3F908A076F; Thu, 10 Aug 2023 15:21:59 +0200 (CEST) Date: Thu, 10 Aug 2023 15:21:59 +0200 From: Jan Kara To: Jeff Layton Cc: Christian Brauner , OGAWA Hirofumi , 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 Message-ID: <20230810132159.zahg4mkc6yugcoul@quack3> References: <20230810-ctime-fat-v1-0-327598fd1de8@kernel.org> <20230810-ctime-fat-v1-1-327598fd1de8@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810-ctime-fat-v1-1-327598fd1de8@kernel.org> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no 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 On Thu 10-08-23 09:12:04, Jeff Layton wrote: > 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 Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > 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; > } > > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR