aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-05-01 12:14:41 +0100
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:54 +0200
commitd887f03fdb113e62643f948997e0a3974f695cc8 (patch)
treeecf6f87466b1b72ecda517bed8edea0bdb473315 /tools/perf/scripts/python/export-to-postgresql.py
parentbtrfs: move transaction aborts to the error site in add_to_free_space_tree() (diff)
downloadlinux-rng-d887f03fdb113e62643f948997e0a3974f695cc8.tar.xz
linux-rng-d887f03fdb113e62643f948997e0a3974f695cc8.zip
btrfs: simplify getting and extracting previous transaction during commit
Instead of detecting if there is a previous transaction by comparing the current transaction's list prev member to the head of the transaction list (fs_info->trans_list), use the list_is_first() helper which contains that logic and the naming makes sense since a new transaction is always added to the end of the list fs_info->trans_list with list_add_tail(). And instead of extracting the previous transaction with the more generic list_entry() helper against the current transaction's list prev member, use the more specific list_prev_entry() helper, which makes it clear what we are doing and is shorter. 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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions