aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-12-17 12:00:39 +0000
committerDavid Sterba <dsterba@suse.com>2025-01-13 14:53:17 +0100
commit6a2b3d7a36df2c7a7ad3a8ef00bc4ea194221c02 (patch)
treefa382b057a95487bdf01559dbbc1efac73e0accf /tools/perf/scripts/python/export-to-postgresql.py
parentbtrfs: remove pointless comment from ctree.h (diff)
downloadwireguard-linux-6a2b3d7a36df2c7a7ad3a8ef00bc4ea194221c02.tar.xz
wireguard-linux-6a2b3d7a36df2c7a7ad3a8ef00bc4ea194221c02.zip
btrfs: use uuid_is_null() to verify if an uuid is empty
At btrfs_is_empty_uuid() we have our custom code to check if an uuid is empty, however there a kernel uuid library that has a function named uuid_is_null() which does the same and probably more efficient. So change btrfs_is_empty_uuid() to use uuid_is_null(), which is almost a directly replacement, it just wraps the necessary casting since our uuid types are u8 arrays while the uuid kernel library uses the uuid_t type, which is just a typedef of an u8 array of 16 elements as well. Also since the function is now to trivial, make it a static inline function in fs.h. Suggested-by: Johannes Thumshirn <johannes.thumshirn@wdc.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