]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: cleanup unnecessary string dup in btrfs_parse_options()
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>
Thu, 14 Dec 2017 08:28:00 +0000 (17:28 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:19 +0000 (16:08 +0100)
commit874d84eb7a2d1a83c93dc9ef15873e75de939184
treef37e671a09c5558edff560771c682089cf5f87af
parentc75ea749cceb564e37aadeeff97938a14cee7028
btrfs: cleanup unnecessary string dup in btrfs_parse_options()

Long ago, commit edf24abe51493 ("btrfs: sanity mount option parsing and
early mount code") split the btrfs_parse_options() into two parts
(btrfs_parse_early_options() and btrfs_parse_options()). As a result,
btrfs_parse_optins no longer gets called twice and is the last one to
parse mount option string. Therefore there is no need to dup it.

Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c