summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-10-07 15:41:21 +0100
committerDavid Sterba <dsterba@suse.com>2026-10-12 19:16:25 +0200
commit04136cd21c64cc7036d768e92a781347bb425d25 (patch)
treeef0526c36fe13d17c31640d9ea64a5369bcb5a8a /tools/perf/scripts/python
parentbbb86c6dc1a8168c4f718b246dc0857321c7ba81 (diff)
downloadlinux-04136cd21c64cc7036d768e92a781347bb425d25.tar.gz
linux-04136cd21c64cc7036d768e92a781347bb425d25.zip
btrfs: defrag: fix key comparison with max defrag key in btrfs_defrag_leaves()
The comparison can not be done in isolation for each key component (type and offset) after the objectid component. For example if the defrag_max key is (300 2 0) and the defrag_progress key is (301 1 0), the existing comparison makes us jump to the 'done' label with 'ret' set to -EAGAIN because 2 > 1, resulting in continuing to defrag despite having passed the objectid of 300. Fix this by doing the comparison correctly with btrfs_comp_cpu_keys(). Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions