]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: sysfs: refactor output formatting in btrfs_read_policy_show()
authorAnand Jain <anand.jain@oracle.com>
Wed, 1 Jan 2025 18:06:31 +0000 (02:06 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:20 +0000 (14:53 +0100)
commit83be7f8b9c24bd040a348577c7c84fd08911707f
tree8d0f4f099ccc8d672a340ca9a06e31f88b9c5dd5
parenta5019b70704a8cbea4c295ae7a61abd87300ff29
btrfs: sysfs: refactor output formatting in btrfs_read_policy_show()

Refactor the logic in btrfs_read_policy_show() for easier extension with
more balancing methods.  Streamline the space and bracket handling
around the active policy without altering the functional output.  This
is in preparation to add more methods.

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