diff options
author | Anand Jain <anand.jain@oracle.com> | 2025-01-02 02:06:32 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-01-13 14:53:21 +0100 |
commit | 38cae63137d5e13dc3c2ba88c4f393be4a6bf4bb (patch) | |
tree | 34a7b0ac6b018a3e8016e5d1ba21472fa3c63c2d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 83be7f8b9c24bd040a348577c7c84fd08911707f (diff) |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions