btrfs: split parse_early_options() in two
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>
Thu, 14 Dec 2017 08:25:28 +0000 (17:25 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:18 +0000 (16:08 +0100)
commitd7407606564c595e4b9775cc6b14913e92217782
treea88e2553ddefd8bd695588f71b8a4a693366c74e
parent312c89fbca06896cb25a0daf4fa5f44c29bbb1b1
btrfs: split parse_early_options() in two

Now parse_early_options() is used by both btrfs_mount() and
btrfs_mount_root(). However, the former only needs subvol related part
and the latter needs the others.

Therefore extract the subvol related parts from parse_early_options() and
move it to new parse function (parse_subvol_options()).

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