summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-09-25 16:45:34 +0100
committerDavid Sterba <dsterba@suse.com>2026-10-12 19:16:22 +0200
commit6fa6630f952237b47dadd5981af3a1fcd88b99ea (patch)
treee955e4746f99c4f17ac10dabb0c16e9ae37f7820 /tools/perf/scripts/python/export-to-postgresql.py
parent7d69a3c9b519ac9a3987919eb529d4b8c31c0274 (diff)
downloadlinux-6fa6630f952237b47dadd5981af3a1fcd88b99ea.tar.gz
linux-6fa6630f952237b47dadd5981af3a1fcd88b99ea.zip
btrfs: simplify dir item location setup in btrfs_insert_xattr_item()
The location (a btrfs_disk_key) of a btrfs_dir_item used for a xattr is always zeroed and we have a complex setup in btrfs_insert_xattr_item() where we declare an on stack btrfs_key, zero it out, convert it into a btrfs_disk_key, also declared on stack, and then pass that btrfs_disk_key to a btrfs_set_dir_item_key() call. We can simplify this, and save stack space (one btrfs_disk_key and one btrfs_key), by simply using memzero_extent_buffer(). 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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions