]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: sysfs: use sysfs_streq for string matching
authorDavid Sterba <dsterba@suse.com>
Tue, 2 Aug 2022 13:46:28 +0000 (15:46 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:53 +0000 (12:27 +0200)
commit7f298f224e889dece8d015ee7e3955a2adda60b8
tree4a38310ea1ddf4d2288254686e2ce8cd4fee8433
parentf9eab5f0bba76742af654f33d517bf62a0db8f12
btrfs: sysfs: use sysfs_streq for string matching

We have own string matching helper that duplicates what sysfs_streq
does, with a slight difference that it skips initial whitespace. So far
this is used for the drive allocation policy. The initial whitespace
of written sysfs values should be rather discouraged and we should use a
standard helper.

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