From: Xixin Liu <liuxixin@kylinos.cn>
To: linux-btrfs@vger.kernel.org
Cc: dsterba@suse.com, mason@kernel.org, linux-kernel@vger.kernel.org,
liuxixin@kylinos.cn
Subject: [PATCH 0/1] btrfs: free remap records when balance stops early
Date: Mon, 21 Sep 2026 14:48:00 +0800 [thread overview]
Message-ID: <cover.1789973253.git.liuxixin@kylinos.cn> (raw)
Hi,
This patch frees leaked remap records when balance stops early. Early
error returns left kmalloc records on the stack list. Share one free
helper at the remap pass end and on error when the list is non-empty.
Tested on linux-next next-20260914 for cancel and complete cases.
Thanks,
Xixin Liu
---
liuxixin (1):
btrfs: free remap records when balance stops early
fs/btrfs/volumes.c | 65 ++++++++++++++++++++++++++---------------------
1 file changed, 36 insertions(+), 29 deletions(-)
--
2.43.0
next reply other threads:[~2026-09-21 8:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 6:48 Xixin Liu [this message]
2026-09-21 6:48 ` [PATCH 1/1] " Xixin Liu
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.1789973253.git.liuxixin@kylinos.cn \
--to=liuxixin@kylinos.cn \
--cc=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mason@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
all inboxes | Powered by JetHome®