]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: sysfs: handle value associated with read balancing policy
authorAnand Jain <anand.jain@oracle.com>
Wed, 1 Jan 2025 18:06:33 +0000 (02:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:21 +0000 (14:53 +0100)
commitb6bed20ed398f71069bfd2cd769bb91fa15859b5
treeeabee158e98e453d111e0234d8e348506400c2a3
parent38cae63137d5e13dc3c2ba88c4f393be4a6bf4bb
btrfs: sysfs: handle value associated with read balancing policy

Enable specifying additional configuration values along the RAID1
balancing read policy in a single input string.

Update btrfs_read_policy_to_enum() to parse and handle a value
associated with the policy in the format "policy:value", the value part
if present is converted to 64-bit integer.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c