Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1145452rwl; Thu, 10 Aug 2023 07:08:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHmEJ6Sdw/BI2C5XiPr4HYZU1QziLMoDZan/KQtPlmH2lDHXj7IdD38mya6s+SqGRHEQ/K X-Received: by 2002:a50:ef18:0:b0:523:3f45:5678 with SMTP id m24-20020a50ef18000000b005233f455678mr1997660eds.31.1691676528058; Thu, 10 Aug 2023 07:08:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691676528; cv=none; d=google.com; s=arc-20160816; b=Zb6kTbhoryk2KVi3MXJqNllRBEAS/f5FnPDrLSt9u7LmOxDMYk4/ks7TDysOmQLs+r SdzrXSJUG+ezyfxYMu195x9HHdbLO4IGXtGj1/ayEVscbjg2D9W9OZaTRpjUHF4f1RS/ 3guOUSDhqOJt4XKvu726rm34VzEyw5EX1CzYbTLA+LE9XZCSZrJiQQbYEAu6ecCO8aNC yMzt7q9bWBOtFhQGF/zID1mN29nWTCqAqHr5x/OeZJX+pAn3lpVytnZaa6Ipk6xsD828 kEtgRpT7JKA6XvCEN1TheUjiRqKE9SUbM5rA3DQEb7yDwglqQX2XosDxavfX+cFyDXFW dPdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=eKPeWq2m8VCyifJjs83NKpRBzXZsRf7shBaBUDE1/jU=; fh=L/kRK60uddxNkRYPrHJT9HisR9iqwn7Y8kOlbgG+aXM=; b=C/jfccJEegS6GHHL/h2QjTMcSdWOeZV34bLDDn7tUq7IpcvYHol6/g651+hnDaOX42 S6FbY1wY7jEznCdkJV4Dtc0WrcQKVSVDRGE8VQRkCe8q3sRF31VVzW47Il2c/c1+I0UD /cAd36rKeVVYpxm/yKtI59r/obHX37VZQc0xIQEA5s7mZaOHKimTlfjqwsRekot7y/jd 9srjo9MNKjHuMrJb00/IzdHXE7apdtbgM9dULVD+A93XfswBF/EOA4xj+ozgRaVMFGgq R0d9ghZwdBfDlwGa53XAHSFp4tl2g53A7r+ivkyyOcMDHp2y8XdNZKvlrY7OLWgYuW9s 6zSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ELS5wT6w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020aa7c308000000b0051de11a08e9si1495250edq.246.2023.08.10.07.07.58; Thu, 10 Aug 2023 07:08:48 -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=@kernel.org header.s=k20201202 header.b=ELS5wT6w; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234097AbjHJNMQ (ORCPT + 99 others); Thu, 10 Aug 2023 09:12:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231978AbjHJNML (ORCPT ); Thu, 10 Aug 2023 09:12:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2015E136; Thu, 10 Aug 2023 06:12:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A97C163875; Thu, 10 Aug 2023 13:12:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B63FC433CB; Thu, 10 Aug 2023 13:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691673130; bh=qEGRHERJDD6pf6eauAwl2sw44g31DM2S00kWiYDSE2Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ELS5wT6wY+1eGzsgNKqf/4DSKbkla03pIoy7LZRuX5j4w8/GIYlOBj6R6TZ/KWwtK B+63AELT3JTE7kWOt2lU9yPFz0BB1poTvJ59gLKsCvgErxHeIqsM6UUJ5z6hNMI0Rh FsguVLk0a357UYL6e5t3x1NdDipaNphc1QcvmJT404O2wluM6XqFT/KdNBP2xyG7QU 1c0Io68mN9zvJG5iEGEKMbh158l1rM71yNsBtP/c4hQBygKckWtJwdGwLe3OJXaWTY fvR+1YgVMBWaOvUjXhGu0wLPOpLJNfK5MVm7ovW6T+y0ejxiJ+pWSv5CV7MuG3LYRg yPOzgOiSK7cZw== From: Jeff Layton Date: Thu, 10 Aug 2023 09:12:04 -0400 Subject: [PATCH 1/2] fat: remove i_version handling from fat_update_time MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230810-ctime-fat-v1-1-327598fd1de8@kernel.org> References: <20230810-ctime-fat-v1-0-327598fd1de8@kernel.org> In-Reply-To: <20230810-ctime-fat-v1-0-327598fd1de8@kernel.org> To: Christian Brauner , OGAWA Hirofumi , Frank Sorenson , Jan Kara Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jeff Layton X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=997; i=jlayton@kernel.org; h=from:subject:message-id; bh=qEGRHERJDD6pf6eauAwl2sw44g31DM2S00kWiYDSE2Q=; b=owEBbQKS/ZANAwAIAQAOaEEZVoIVAcsmYgBk1OIoQw6ZsmX4vC0yb2/1NWPLO8xdxhDhjM/hR ObdyBBrRiCJAjMEAAEIAB0WIQRLwNeyRHGyoYTq9dMADmhBGVaCFQUCZNTiKAAKCRAADmhBGVaC FWCUEAC9+CezU7ndFRliS/8zKwJjJGmx/HoOu8e65SKrTQrEWlRL/rzWHzn8jknlSv3xpq9dJjf UAhZm1b9rj7XCS3oNJJqLcTMaQKCNnJrPcECRILLMWmbG+gE+4sDxeIlWuqCAxGIIyGSY51OND5 HN15h/Rd4Lu4jh5ZSyCfB59mEvFLtOyznbX2cEHtjESri9Qd3wNildNZrd+PZhRsUi85GbjXI/p kfFz6+ZuiniM6X9acRFTbmyAL99rFrJETEzdV+4R0RjGQEnTZPEEpDCb21Mv7u2uHrYzzVvjM0F D4NuPGPIh+wEK31J7TaWOOCa/K5PzxxpuFVq1TrqCHdlk5j3J+dhojiP/Ky9eeq3gHuamLQpFJU 7g7PRJiQK7isiV5U2t0VOduguDMwd7vZlRGYoMA3b5ncMb4DHnuEVM0FxLkDH8PbchcADKuSpWC ilX41Vk4gq0Ph8v5NDbnmLoBcQapUC7byTrw4DQXqguCqGe+7VM/CE82h6hekKNb9K+ncp4EzYJ nZew5LtSXGTdrLWS0aBIi0l+sJznnIo+2E9UXJciBD+MB6fTREog9DdYJZFCILmR+9Ihx/XQqNe JU3cIgFYFeETO524mMmiS27yGaKUUdh0VcIMFWUBjFPoCGsqRe7xAMc+SjFXphbAARsx29yNdTn wL2kM2PcFIeJgKw== X-Developer-Key: i=jlayton@kernel.org; a=openpgp; fpr=4BC0D7B24471B2A184EAF5D3000E684119568215 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, 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 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 --- 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