Received: by 2002:ac8:5491:0:b0:40f:fb00:664b with SMTP id h17csp649221qtq; Thu, 10 Aug 2023 11:38:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTprjl7ZFlSlfOSI7C0PCgu0hEnVhluGUvADx9DACNKjVwuFR6exzcJeHMIMfw2X/o+z4M X-Received: by 2002:a05:6a21:3e14:b0:13e:e450:f4c9 with SMTP id bk20-20020a056a213e1400b0013ee450f4c9mr2904780pzc.44.1691692685546; Thu, 10 Aug 2023 11:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691692685; cv=none; d=google.com; s=arc-20160816; b=lXj7AwD8BbPeIXr6qx9rdO7F1NeGjzotC87k7hevCHG07cWHN1gGG/gl2WYliSz4Ig HfUulwVVXvOzlTDSMWFBR+sa7UY5zF9ELyaCIkLM9w2sZcXgbodSv8niy5Ua92dWr0od 7HulvBPXy5JG2sGELOvlIIXYYNyH/782mAVH8f2rveeB0SWpODhvOHxtwkpRkKVQsgnH KponyXtTHNU9rJYGNGjHn7vFg6rUI8kJo3w9G6oEdAXd9m7fKxuJ+i8aWOl8cy4nsqJT rAlE0JlsrdBLbWiqspNKXjjL6mX59cEbKD+Lqy5S1QhNt5dNE3gC/2ORnQQyzl13ZQDz DYgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:sender:dkim-signature; bh=VG/uNlFyJja7lEeGuDWud0yyTYi4B3i+dZ9t+Phv10Q=; fh=9uMxBQLnHHWLT2Kjeus4ZUFFvmr3xD0DT/Apyte2w9U=; b=xdncQ8LsPHUfT9wDSJ68Bmll6JmT7J7GnbcdeqSzo7pImbki81D1qt/fxSTPvOdLxI MErsAVZy3QdfCsjZoQk9qIDVQ2yab3mXmSTUZVF1LieTf+WgYM7bd5PACSCoqVhwlrJL OW6+PSfgtKv4/IwGQHUN4EaEkeRaNec/9C1o9QqSA3sYbeMJA0kBkfhZsJ1aOn9E7bzI ViWIk1meJqjIDT5H/vM2i2AyJKKoNzicG/hgteRdRvT9bX4W5bd2gr1boR5mCzUDJRac JGxBv9893EHVGgJ+1je0ktmWU6pr23B7523YpaNK/bnAWzZzgrWmPBvuBPcBfTaIroII +4DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=hf0NSxR3; 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 h64-20020a638343000000b005655bf61e1csi1346411pge.230.2023.08.10.11.37.52; Thu, 10 Aug 2023 11:38: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=hf0NSxR3; 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 S234167AbjHJSE0 (ORCPT + 99 others); Thu, 10 Aug 2023 14:04:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230446AbjHJSEZ (ORCPT ); Thu, 10 Aug 2023 14:04:25 -0400 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E42BA10D; Thu, 10 Aug 2023 11:04:24 -0700 (PDT) Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-641897222f6so3216446d6.0; Thu, 10 Aug 2023 11:04:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691690664; x=1692295464; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=VG/uNlFyJja7lEeGuDWud0yyTYi4B3i+dZ9t+Phv10Q=; b=hf0NSxR3RI1WzWVNkqda1sm2CG+5J7s7P7Hr1Zx5um0AJMym26kgHwQUmjvyoDai81 PDHBzDBa/lNn8anDK8oTvF/JItcim9ZM79xO09WIN+keMLwhrm5qGxdx9HPwl3JSKEt5 3jTkVdiYDYa3i+VtTTZFNEN6R00cX0IEaWaLu6Jof+HpL6NgeH31L5O7TtwQFH37OxGe exDuRjfhEsZxQeJB1EKqKpMPcDisevhnibU3mdkCBVN1CubLBwuh9ja+IrC+8vPuav02 9GUAh2BfJsX3YcKl9UGf8rsccZh72z4MuEKV2qaWrlVzTfZ2wzD6+AxWJbM76IT31sni DtlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691690664; x=1692295464; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VG/uNlFyJja7lEeGuDWud0yyTYi4B3i+dZ9t+Phv10Q=; b=GMz9MwESbtWF1q+QhPDUqbQlDFo6aPbYgwjRQMH/VDKh7qvK82MzAJkTaTQQ0vHdJb ZriSunpwU2CPGQHWd4Ysu5zhHev3wze0YVy7+PB/AQGZzlSCiVgE7D5ScRCaM7jVJysX WJ/rk31iMw0ks2L16BD9Wr4RJOj2wx48hRvKzSHxcjilgTDJSJj+CiHemXvKpiL0nMVA ceQ918KYcrn5EMN4fb9FQrat+Odh+J6suK41iyM9QNIkz0V30oPYCRXl8gUkRO/SrRKa T+O3ER2zazawt5fqlOYDlCS3Mf5V8y0tAeSfZv47tEBLzdfaHC4DtkqgMXGkQgJzqX4k 1MzQ== X-Gm-Message-State: AOJu0YynV1A56pguWa6dB7VVNsPBcFshi9wskBcf+Pzc2lXjkYxLQ7nq eHDNCcfGNS34pBb7JAJeP+nJw809dnyVug== X-Received: by 2002:a0c:ca0f:0:b0:63d:6df9:d166 with SMTP id c15-20020a0cca0f000000b0063d6df9d166mr2957557qvk.4.1691690663855; Thu, 10 Aug 2023 11:04:23 -0700 (PDT) Received: from [172.16.0.69] (c-67-184-72-25.hsd1.il.comcast.net. [67.184.72.25]) by smtp.gmail.com with ESMTPSA id q29-20020a05620a039d00b0076c96e571f3sm652737qkm.26.2023.08.10.11.04.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Aug 2023 11:04:23 -0700 (PDT) Sender: Frank Sorenson From: Frank Sorenson X-Google-Original-From: Frank Sorenson Message-ID: <85cc0147-2fd0-de22-4ff6-57705983c968@redhat.com> Date: Thu, 10 Aug 2023 13:04:21 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] fat: remove i_version handling from fat_update_time To: Jeff Layton , Christian Brauner , OGAWA Hirofumi , Jan Kara Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org References: <20230810-ctime-fat-v1-0-327598fd1de8@kernel.org> <20230810-ctime-fat-v1-1-327598fd1de8@kernel.org> Content-Language: en-US In-Reply-To: <20230810-ctime-fat-v1-1-327598fd1de8@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 On 8/10/23 08:12, 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 > --- Reviewed-by: Frank Sorenson > 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; > } >