[PATCH 0/1] btrfs: free remap records when balance stops early
From: Xixin Liu
Date: Mon Sep 21 2026 - 04:55:51 EST
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