]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
btrfs: add helper for string match ignoring leading/trailing whitespace
authorAnand Jain <anand.jain@oracle.com>
Wed, 28 Oct 2020 13:14:45 +0000 (21:14 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 8 Dec 2020 14:53:44 +0000 (15:53 +0100)
commitaaefed207875a0f0c46c4a50dcd0aca0d56b9062
tree3f6e648d49ffb30d6a4d275653c18113c28e10fe
parent88090ad36a64af1eb5b78d26b2ccd07eedae80b5
btrfs: add helper for string match ignoring leading/trailing whitespace

Add a generic helper to match the string in a given buffer, and ignore
the leading and trailing whitespace.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ rename variables, add comments ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c