Searched hist:"020 e5277" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/btrfs/ |
H A D | sysfs.c | 020e5277 Mon Oct 18 19:22:09 CDT 2021 Anand Jain <anand.jain@oracle.com> btrfs: sysfs: convert scnprintf and snprintf to sysfs_emit
Commit 2efc459d06f1 ("sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs out") merged in 5.10 introduced two new functions sysfs_emit() and sysfs_emit_at() which are aware of the PAGE_SIZE limit of the output buffer.
Use the above two new functions instead of scnprintf() and snprintf() in various sysfs show().
Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|