aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-05-02 11:23:02 +0100
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:55 +0200
commit5bc3b7e2b5f840a4131093b66fd3c1ab604ba9a9 (patch)
treeaa25af0fc00be83c6d31d600c00f34d06b78c75f /scripts/gdb/linux/utils.py
parentbtrfs: simplify csum list release at btrfs_put_ordered_extent() (diff)
downloadwireguard-linux-5bc3b7e2b5f840a4131093b66fd3c1ab604ba9a9.tar.xz
wireguard-linux-5bc3b7e2b5f840a4131093b66fd3c1ab604ba9a9.zip
btrfs: defrag: use list_last_entry() at defrag_collect_targets()
Instead of using list_entry() against the list's prev entry, use list_last_entry(), which removes the need to know the last member is accessed through the prev list pointer and the naming makes it easier to reason about what we are doing. 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