aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2025-01-02 02:06:32 +0800
committerDavid Sterba <dsterba@suse.com>2025-01-13 14:53:21 +0100
commit38cae63137d5e13dc3c2ba88c4f393be4a6bf4bb (patch)
tree34a7b0ac6b018a3e8016e5d1ba21472fa3c63c2d /tools/perf/scripts/python/export-to-postgresql.py
parentbtrfs: sysfs: refactor output formatting in btrfs_read_policy_show() (diff)
downloadwireguard-linux-38cae63137d5e13dc3c2ba88c4f393be4a6bf4bb.tar.xz
wireguard-linux-38cae63137d5e13dc3c2ba88c4f393be4a6bf4bb.zip
btrfs: sysfs: add btrfs_read_policy_to_enum() helper and refactor read policy store
Introduce btrfs_read_policy_to_enum() helper to simplify the conversion of a string read policy to its corresponding enum value. This reduces duplication and improves code clarity in btrfs_read_policy_store(). The parameter is copied locally to allow modification, enabling the separation of the method and its value. This prepares for the addition of more functionality in subsequent patches. Signed-off-by: Anand Jain <anand.jain@oracle.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