diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-09-25 16:45:34 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-10-12 19:16:22 +0200 |
| commit | 6fa6630f952237b47dadd5981af3a1fcd88b99ea (patch) | |
| tree | e955e4746f99c4f17ac10dabb0c16e9ae37f7820 /tools/perf/scripts/python/bin | |
| parent | 7d69a3c9b519ac9a3987919eb529d4b8c31c0274 (diff) | |
| download | linux-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/bin')
0 files changed, 0 insertions, 0 deletions
