Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4964839rwd; Tue, 30 May 2023 12:29:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5pfg1sq0bVEeJ0o63W21E17nXy+nI1bf26OggopXgseOr3mygWZKphtotgy+yVKXKhvBhQ X-Received: by 2002:a05:6a20:3d89:b0:101:6a2f:2a0e with SMTP id s9-20020a056a203d8900b001016a2f2a0emr3912709pzi.18.1685474950788; Tue, 30 May 2023 12:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685474950; cv=none; d=google.com; s=arc-20160816; b=RJI4LCZ0ANwylwNdFszwdFjejsgPeNmYq+T1oBH9hMET2Ww0YWbRJwZjAC8702i4ES FyVYAC58QUCO1tBYAc+fO33LoGi1QcXIRJfEqs8Pnue+200AXh+ZT8ptROt7cQpeO6yE Gh7SD7i3v/IpiFYHnqIi28mnZhsZCxe1D5mvjNv0P4N2v7eU14lGAlp8+lxDxwFTb1aF QhOKCXMi3YY6uNZMD73sfOZHOvV9KBnmN4p7fxR3iydR/pwT/gdpslVRv3r2s/+RGBNo NIJjqjSTAd35Z2aBMzaNprQZPWSzrhJv4KLAyvoW6LJahxTaQ0CH0mojpHb7IcXeowp3 Yqeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IUUh7klqJKZF8dQtCWpOWUVn9wGRdkI53waGlT6vlNU=; b=z/7QLZPK66d+u35vZt8uXpbB9KbFVlWk2yG1NnLr05hxPdvzCe9Ice9R9viwIlLIRd eys5egTHeU1Hxo9WjzUDKM8z6od4kFmVUemzaD2amviNtomBRR7nBwgzZGyJInH+EFWP 1fHTWj0eTuOYntdjac4EJMBTvovqZzBCmaBcylAqF/i1vrVNsMN8ytNvk9xabw0QDZuh yMFfZim9CN1RX8Ud/JYb2yLnpM/lH6ADiyxj/LyYbZf/QzumxCldGa7BKuFXMN0/kmPo bUTk16lTSKrRWH8gg3HDcm8RENfbt8f9eN5YBE/LFKwzCJ3GLqct58XfK/TUrrzvV5/Z 5f+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mit.edu header.s=outgoing header.b=d3lor2M1; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r9-20020aa79889000000b0063b60063f55si767110pfl.382.2023.05.30.12.28.52; Tue, 30 May 2023 12:29:10 -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; dkim=fail header.i=@mit.edu header.s=outgoing header.b=d3lor2M1; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232196AbjE3T0x (ORCPT + 99 others); Tue, 30 May 2023 15:26:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232005AbjE3T0w (ORCPT ); Tue, 30 May 2023 15:26:52 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05A74BE for ; Tue, 30 May 2023 12:26:51 -0700 (PDT) Received: from cwcc.thunk.org (pool-173-48-120-46.bstnma.fios.verizon.net [173.48.120.46]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 34UJQcSF011212 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 15:26:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1685474799; bh=IUUh7klqJKZF8dQtCWpOWUVn9wGRdkI53waGlT6vlNU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=d3lor2M10nL2H3xE+OM5L7Gn9siytcp03q6NImL0ijPhEdSalVk0PMFvH5AIqtG1u UClu/VkkcXnM/yN1Ht8IxM3yMuHuYS0CaTGXVIymloYnaG0o5K1b1MZ8bSJeM0iJv8 VUFAWfrCE+sUnpR7SU/TqBavOYI2ik/k+h/ahnGmCcE0DzsiYGEnJ1iyFYo+gnUwoy pC+ZhshOpGJHDx1ouWfm3RYkjJ8xJkJy2SVFcaUnJWrd+XER5Kdx1gpKyXUjmvqYqY +vLKf23alNDTkHhwi8AGt7jVUWhkhgOhKmBjlkXW3gZ7zt9uK03UI6ivoZ33hcMP0e aRllJMWrGTKJg== Received: by cwcc.thunk.org (Postfix, from userid 15806) id DA7A015C02EE; Tue, 30 May 2023 15:26:37 -0400 (EDT) From: "Theodore Ts'o" To: Jan Kara Cc: "Theodore Ts'o" , linux-ext4@vger.kernel.org, Eric Whitney , Linux kernel regressions list Subject: Re: [PATCH] ext4: Fix fsync for non-directories Date: Tue, 30 May 2023 15:26:34 -0400 Message-Id: <168547476046.200310.8139638693593712041.b4-ty@mit.edu> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20230524104453.8734-1-jack@suse.cz> References: <20230524104453.8734-1-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On Wed, 24 May 2023 12:44:53 +0200, Jan Kara wrote: > Commit e360c6ed7274 ("ext4: Drop special handling of journalled data > from ext4_sync_file()") simplified ext4_sync_file() by dropping special > handling of journalled data mode as it was not needed anymore. However > that branch was also used for directories and symlinks and since the > fastcommit code does not track metadata changes to non-regular files, the > change has caused e.g. fsync(2) on directories to not commit transaction > as it should. Fix the problem by adding handling for non-regular files. > > [...] Applied, thanks! [1/1] ext4: Fix fsync for non-directories commit: 47a71ba09a8473c81cb87ed11421ed2896f352d2 Best regards, -- Theodore Ts'o