Skip to content

btrfs: free remap records when balance stops early

Xixin Liu linux-btrfs lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1btrfs: free remap records when balance stops earlyfs/btrfs/volumes.c+36 -290 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] btrfs: free remap records when balance stops early

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(-)
Signature · 1 line
2.43.0