Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: fdmanana@kernel.org
To: linux-btrfs@vger.kernel.org
Subject: [PATCH 0/6] btrfs: defrag/autodefrag fixes and cleanups
Date: Thu, 25 Jun 2026 20:20:10 +0100	[thread overview]
Message-ID: <cover.1782321584.git.fdmanana@suse.com> (raw)

From: Filipe Manana <fdmanana@suse.com>

There are a couple bugs related to defrag and autodefrag, one of them
reported by syzbot and the other can often be triggered by fsstress with
the mount option "-o autodefrag" (or fstests on random tests that use
fsstress with multiple processes). Details in the change logs.

Filipe Manana (6):
  btrfs: defrag: fix deadlock between defrag and delalloc space reservation
  btrfs: fix pending delayed iputs when using autodefrag
  btrfs: defrag: use a single list for each loop in defrag_one_range()
  btrfs: defrag: use auto kfree in defrag_one_range() for folios array
  btrfs: defrag: use simple list_del() in defrag_collect_targets()
  btrfs: defrag: remove pointless list_del_init() in defrag_one_cluster()

 fs/btrfs/defrag.c  | 61 ++++++++++++++++++++++++++--------------------
 fs/btrfs/disk-io.c | 15 ++++++++++++
 2 files changed, 49 insertions(+), 27 deletions(-)

-- 
2.47.2


             reply	other threads:[~2026-06-25 19:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-25 19:20 fdmanana [this message]
2026-06-25 19:20 ` [PATCH 1/6] btrfs: defrag: fix deadlock between defrag and delalloc space reservation fdmanana
2026-06-25 19:20 ` [PATCH 2/6] btrfs: fix pending delayed iputs when using autodefrag fdmanana
2026-06-25 19:20 ` [PATCH 3/6] btrfs: defrag: use a single list for each loop in defrag_one_range() fdmanana
2026-06-25 23:02   ` Anand Suveer Jain
2026-06-25 19:20 ` [PATCH 4/6] btrfs: defrag: use auto kfree in defrag_one_range() for folios array fdmanana
2026-06-25 19:20 ` [PATCH 5/6] btrfs: defrag: use simple list_del() in defrag_collect_targets() fdmanana
2026-06-25 23:10   ` Anand Suveer Jain
2026-06-25 19:20 ` [PATCH 6/6] btrfs: defrag: remove pointless list_del_init() in defrag_one_cluster() fdmanana
2026-06-25 23:03   ` Anand Suveer Jain
2026-06-25 23:00 ` [PATCH 0/6] btrfs: defrag/autodefrag fixes and cleanups Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1782321584.git.fdmanana@suse.com \
    --to=fdmanana@kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox