Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2244148pxx; Sat, 31 Oct 2020 13:06:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN7Eff8TVgEcyXNys0DoNSYz6t7uvPTgERTywpj1PRslgL/gYdL/BAIkhoRAW3dzaE2/Tl X-Received: by 2002:a17:906:b055:: with SMTP id bj21mr8387817ejb.334.1604174788989; Sat, 31 Oct 2020 13:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604174788; cv=none; d=google.com; s=arc-20160816; b=e1sVEEgtPYpbRZxqxhx5s7aPlmykXJWQ4o6thQoqTPmt+WVbSoVKjjzFrS7U5b+wVQ MI61QjobKNR/gcWaDD3JU/3upP0k00sGmxB1uV5Wfm7TnprgtUf3ZrdGgLPmW0Li4Qz9 8Xh+Q0cNBCXR850s1O2ubRiNWfHnqrpgaVeze5mC0fgxEIo8D4qK6mot1cfLOqWfCZ7X s9ZngPvEgZb8erfRaX+3FqVXH+q20vwTpgiyGqf/NzqW0O3iwhlg7h5hfB4AoD3TO/Oc 6VoWxiCVSsslbhabGoFgtL4U2mkmbtkwOls9+gFyRUZsLvZny1GJYUnDaIum3TtKHdus 0yzw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=dUCi+lA+wJ6GzeQ2Cypz60R7V9wle+fxXsZkBVAioAw=; b=htzz/d9JNor7wEuWakXhakli/VA7L9K6y0RdXneBPR1zvHsGvXcX+1UnICJXWTZmnW JTqgT6iKdm+MCj179IJExx1u1rZTUUSLN2RvoDU+4B09msD+5Gdtj+BIpAtikTThDEZB olHwH8yQWC3b/ily3OOjXF6c7DkX4B/TBaxtFeKwtXM0SaZww5qcTT7tTDyuJ4M+ZLxB Xdizbx/rB1LPSWySrPzUs1TFxiDyt05nH4uZQyFRGC0LoG+rw9tsrJxkd+Ud/PeHL9pY UApOB/+HdbwLmRlIp/JAZw9Q6WGRu2SN/tMgmjR+OgsWaf387XmWvaAOgviL84p2mAGz LD/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WLHrawIr; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga34si7186237ejc.296.2020.10.31.13.05.52; Sat, 31 Oct 2020 13:06:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WLHrawIr; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728451AbgJaUFk (ORCPT + 99 others); Sat, 31 Oct 2020 16:05:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728549AbgJaUFk (ORCPT ); Sat, 31 Oct 2020 16:05:40 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F86BC0617A6 for ; Sat, 31 Oct 2020 13:05:40 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id h4so1128898pjk.0 for ; Sat, 31 Oct 2020 13:05:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dUCi+lA+wJ6GzeQ2Cypz60R7V9wle+fxXsZkBVAioAw=; b=WLHrawIrUz5YQVj9rC7Bxrm3H1mPrPVylFslQx9r+EL1AdzXIx1BcjNjX9X/4Lo+J8 UFswsUzVFh7A2hN31b2jCETYtML6wsRgT+wt+UzWK86j+T3mKkigf221ihYWOt2xYnyp l9I8nOkvDoNPDk+if+aBLTkIeOvoAdXiKcLpy+rEaDQEMzNApluolsLOSHJM3sTQJQ16 KeWSPmVvZDJOutKRdM00CmmnzRgzA6k6oCLbPbHg7gssyX24dVEBG65gwLcL9lDzXMGM O75lEf4Zpugid6C6YSFGH2Dwayh1JuRiOchQkcUbyhOkcbldsbReYu26qRYNFsCFSlSB r7yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dUCi+lA+wJ6GzeQ2Cypz60R7V9wle+fxXsZkBVAioAw=; b=liFFhNsiATp08yz+uDFUWZSdUrk6ekfppm4FMzZU6QAKlhney+h1sj2PyKap7sTOdk y8A6ZJ42J5aWEk1lwxRr58+jNFyD3A1ggbxoSzgK72pOPoxQLBbfpCt2WCARIMvLsurf vKlw3FH1cpyjnhs5o5B53IUwg+ESI7INmfMsFFfg5KMMPdfFlzF6Ruq4rj8wsjBZX5t/ fdlGAGjs37xnlLCXSO/V/1lh1o5zbCWZME5meU9xNR2KbNKaBDwxzDD4i03zaYvwXmOd cz6vzMgySxK0DyUH55fmbtcnm4a63QNZuKGZjZjPyR2UehVbYWyYe1KrHpXd0Q8s4/7X 3YZw== X-Gm-Message-State: AOAM531apZ8R0oZv1iFrJ1Nm9Uo9uTZaQ3DrpXlPZJVh/S3XuHIYwJas 0Nf25vk9FjFTlXaf3s+DuMPVfop/PyU= X-Received: by 2002:a17:90a:7024:: with SMTP id f33mr9652086pjk.114.1604174739190; Sat, 31 Oct 2020 13:05:39 -0700 (PDT) Received: from harshads-520.kir.corp.google.com ([2620:15c:17:10:a6ae:11ff:fe11:86a2]) by smtp.googlemail.com with ESMTPSA id t15sm17177102pjq.3.2020.10.31.13.05.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Oct 2020 13:05:38 -0700 (PDT) From: Harshad Shirwadkar To: linux-ext4@vger.kernel.org Cc: tytso@mit.edu, jack@suse.cz, Harshad Shirwadkar Subject: [PATCH 00/10] Ext4 fast commit fixes Date: Sat, 31 Oct 2020 13:05:08 -0700 Message-Id: <20201031200518.4178786-1-harshadshirwadkar@gmail.com> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org ext4: fast commit fixes This patch series adds several documentation and code-only (no on disk format changes) fixes for the fast commit code. I verified that there were no regressions introduced by this patch series in xfstests auto and log groups in fast_commit and 4k configurations. Thanks Jan for suggesting most of the fixes. Signed-off-by: Harshad Shirwadkar Harshad Shirwadkar (10): ext4: describe fast_commit feature flags ext4: mark fc ineligible if inode gets evictied due to mem pressure ext4: pass handle to ext4_fc_track_* functions ext4: clean up the JBD2 API that initializes fast commits jbd2: fix fast commit journalling APIs ext4: dedpulicate the code to wait on inode that's being committed ext4: misc fast commit fixes ext4: fix inode dirty check in case of fast commits ext4: disable fast commit with data journalling ext4: issue fsdev cache flush before starting fast commit Documentation/filesystems/ext4/journal.rst | 6 + Documentation/filesystems/ext4/super.rst | 7 ++ fs/ext4/ext4.h | 22 ++-- fs/ext4/ext4_jbd2.h | 6 +- fs/ext4/extents.c | 11 +- fs/ext4/fast_commit.c | 138 ++++++++++----------- fs/ext4/fast_commit.h | 3 +- fs/ext4/file.c | 2 - fs/ext4/inode.c | 14 +-- fs/ext4/namei.c | 50 ++++---- fs/ext4/super.c | 5 +- fs/jbd2/commit.c | 11 +- fs/jbd2/journal.c | 94 ++++++++------ fs/jbd2/recovery.c | 2 +- include/linux/jbd2.h | 13 +- include/trace/events/ext4.h | 10 +- 16 files changed, 220 insertions(+), 174 deletions(-) -- 2.29.1.341.ge80a0c044ae-goog