diff options
author | Gu Jinxiang <gujx@cn.fujitsu.com> | 2018-07-09 09:39:15 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 14:12:46 +0300 |
commit | 93b9bcdf9fbcb683d4e8c44ee8cec0989053d4de (patch) | |
tree | a38f444af7783cd943114053f0e666bda1d468e5 | |
parent | b4993e64f78a9605b45252fa9ba385c88a1f4ce9 (diff) | |
download | linux-93b9bcdf9fbcb683d4e8c44ee8cec0989053d4de.tar.xz |
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>
-rw-r--r-- | fs/btrfs/super.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index e04bcf0b0ed4..39d8e39b2fe1 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -933,8 +933,8 @@ out: * * The value is later passed to mount_subvol() */ -static int btrfs_parse_subvol_options(const char *options, fmode_t flags, - char **subvol_name, u64 *subvol_objectid) +static int btrfs_parse_subvol_options(const char *options, char **subvol_name, + u64 *subvol_objectid) { substring_t args[MAX_OPT_ARGS]; 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)) mode |= FMODE_WRITE; - error = btrfs_parse_subvol_options(data, mode, - &subvol_name, &subvol_objectid); + error = btrfs_parse_subvol_options(data, &subvol_name, + &subvol_objectid); if (error) { kfree(subvol_name); return ERR_PTR(error); |