summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorGuanghui Yang <3497809730@qq.com>2026-08-08 14:38:32 +0800
committerDavid Sterba <dsterba@suse.com>2026-09-02 00:01:34 +0200
commit40fe154ba049a33f063c0058cd185d7f682088f3 (patch)
tree0cce9dd11d8cceafaedc3f1cae66864d5ec93963 /scripts/Makefile.thinlto
parent4096e2a06f43fae209d6472d395f3219e02ab2e6 (diff)
btrfs: clean up target device if block group marking fails
btrfs_dev_replace_start() adds the replacement target to the device list before marking block groups to copy. If marking fails, returning directly leaves the target linked and keeps the device accounting incremented. Jump to the existing cleanup path so the target device is removed and released on failure. The issue was found by a failure-path metadata residual analyzer and verified with targeted failure injection on v6.14. Assisted-by: Codex:gpt-5 Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Guanghui Yang <3497809730@qq.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions