Commit 5bedc48a authored by David Sterba's avatar David Sterba

btrfs: drop unused parameters from mount_subvol

Recent patches reworking the mount path left some unused parameters. We
pass a vfsmount to mount_subvol, the flags and data (ie. mount options)
have been already applied and we will not need them.
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent e215772c
...@@ -1397,8 +1397,7 @@ static inline int is_subvolume_inode(struct inode *inode) ...@@ -1397,8 +1397,7 @@ static inline int is_subvolume_inode(struct inode *inode)
} }
static struct dentry *mount_subvol(const char *subvol_name, u64 subvol_objectid, static struct dentry *mount_subvol(const char *subvol_name, u64 subvol_objectid,
int flags, const char *device_name, const char *device_name, struct vfsmount *mnt)
char *data, struct vfsmount *mnt)
{ {
struct dentry *root; struct dentry *root;
int ret; int ret;
...@@ -1693,8 +1692,7 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags, ...@@ -1693,8 +1692,7 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags,
} }
/* mount_subvol() will free subvol_name and mnt_root */ /* mount_subvol() will free subvol_name and mnt_root */
root = mount_subvol(subvol_name, subvol_objectid, flags, device_name, root = mount_subvol(subvol_name, subvol_objectid, device_name, mnt_root);
data, mnt_root);
out: out:
return root; return root;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment