diff options
author | 2025-05-01 13:21:34 +0100 | |
---|---|---|
committer | 2025-05-15 14:30:55 +0200 | |
commit | 58fe389a2a2497bbb4e6be3afeaa20c5d5640102 (patch) | |
tree | 41a73965b32f3cea9ba8c6782b7814d509ee45ab /scripts/gdb/linux/utils.py | |
parent | btrfs: simplify extracting delayed node at btrfs_first_prepared_delayed_node() (diff) | |
download | wireguard-linux-58fe389a2a2497bbb4e6be3afeaa20c5d5640102.tar.xz wireguard-linux-58fe389a2a2497bbb4e6be3afeaa20c5d5640102.zip |
btrfs: simplify csum list release at btrfs_put_ordered_extent()
Instead of extracting each element by grabbing the list's first member in
a local list_head variable, then extracting the csum with list_entry() and
iterating with a while loop checking for list emptyness, use the iteration
helper list_for_each_entry_safe(). This also removes the need to delete
elements from the list with list_del() since the ordered extent is freed
immediately after.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions