diff options
| author | Guanghui Yang <3497809730@qq.com> | 2026-09-16 05:16:38 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-09-17 19:32:11 +0200 |
| commit | 3565893cc72cdf6b795cf6a33e7ff9605322334d (patch) | |
| tree | 8afa6c8c49ad1ef6e3c2d99f4fa41297c0511c22 /tools/perf/scripts/python | |
| parent | 76bf149cd0298544631e756670b89c399c7acbca (diff) | |
| download | linux-next-3565893cc72cdf6b795cf6a33e7ff9605322334d.tar.gz linux-next-3565893cc72cdf6b795cf6a33e7ff9605322334d.zip | |
btrfs: clear free space tree creation state on rebuild failure
btrfs_rebuild_free_space_tree() sets BTRFS_FS_CREATING_FREE_SPACE_TREE
before rebuilding the free space tree. Several error paths return
without clearing this flag.
The transaction restart failure path can leave the flag set on a live
filesystem, causing delayed reference processing to be skipped. Clear it
on all free space tree rebuild failure paths. Keep
BTRFS_FS_FREE_SPACE_TREE_UNTRUSTED set, since a failed rebuild leaves
the free space tree untrusted. Callers must fall back to extent-tree
caching.
Fixes: 882af9f13e83 ("btrfs: handle free space tree rebuild in multiple transactions")
CC: stable@vger.kernel.org # 6.14+
Assisted-by: LLM
Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Guanghui Yang <3497809730@qq.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
