diff options
| author | Qu Wenruo <wqu@suse.com> | 2026-02-10 13:54:30 +1030 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-04-07 18:55:56 +0200 |
| commit | 00c865b60b0650723e1f103dc58ca3f01e7bd662 (patch) | |
| tree | 82c735b2b5098372e0ee425f3552c3e2fe048065 /tools/perf/scripts/python | |
| parent | 09664971b33718680c20f94aaf5d18fc8d7b0a3c (diff) | |
btrfs: make add_pending_csums() to take an ordered extent as parameter
The structure btrfs_ordered_extent has a lot of list heads for different
purposes, passing a random list_head pointer is never a good idea as if
the wrong list is passed in, the type casting along with the fs will be
screwed up.
Instead pass the btrfs_ordered_extent pointer, and grab the csum_list
inside add_pending_csums() to make it a little safer.
Since we're here, also update the comments to follow the current style.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
