btrfs: remove unused parameter from btrfs_parse_subvol_options

Since parameter flags is no more used since commit d7407606564c ("btrfs:
split parse_early_options() in two"), remove it.

Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Gu Jinxiang 2018-07-09 14:39:15 +08:00 committed by David Sterba
parent b4993e64f7
commit 93b9bcdf9f

View File

@ -933,8 +933,8 @@ out:
* *
* The value is later passed to mount_subvol() * The value is later passed to mount_subvol()
*/ */
static int btrfs_parse_subvol_options(const char *options, fmode_t flags, static int btrfs_parse_subvol_options(const char *options, char **subvol_name,
char **subvol_name, u64 *subvol_objectid) u64 *subvol_objectid)
{ {
substring_t args[MAX_OPT_ARGS]; substring_t args[MAX_OPT_ARGS];
char *opts, *orig, *p; char *opts, *orig, *p;
@ -1648,8 +1648,8 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags,
if (!(flags & SB_RDONLY)) if (!(flags & SB_RDONLY))
mode |= FMODE_WRITE; mode |= FMODE_WRITE;
error = btrfs_parse_subvol_options(data, mode, error = btrfs_parse_subvol_options(data, &subvol_name,
&subvol_name, &subvol_objectid); &subvol_objectid);
if (error) { if (error) {
kfree(subvol_name); kfree(subvol_name);
return ERR_PTR(error); return ERR_PTR(error);