btrfs: sysfs: convert remaining scnprintf to sysfs_emit
authorDavid Sterba <dsterba@suse.com>
Fri, 30 Sep 2022 15:23:01 +0000 (17:23 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 5 Dec 2022 17:00:41 +0000 (18:00 +0100)
commit467761f90405004e58795116aa7d81f3d298dcfb
treec147f2fa8a3203f1e719931fd7b9ecfe8016089b
parent5a75034e71ef5ec0fce983afcb6c9cb0147cd5b9
btrfs: sysfs: convert remaining scnprintf to sysfs_emit

The sysfs_emit is the safe API for writing to the sysfs files,
previously converted from scnprintf, there's one left to do in
btrfs_read_policy_show.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c