btrfs: drop unused parameter in mount_subvol
authorAnand Jain <anand.jain@oracle.com>
Fri, 29 Mar 2019 06:03:17 +0000 (14:03 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:35 +0000 (19:02 +0200)
@device_name in mount_subvol() is not used, drop it.  Also see:
5bedc48a8f9e ("btrfs: drop unused parameters from mount_subvol").

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c

index 120e4340792aa363a848286f4f27aa89c1d05b1c..2c66d9ea6a3b78e7a1f9d7e09e671a6ab8333df1 100644 (file)
@@ -1400,7 +1400,7 @@ static inline int is_subvolume_inode(struct inode *inode)
 }
 
 static struct dentry *mount_subvol(const char *subvol_name, u64 subvol_objectid,
-                                  const char *device_name, struct vfsmount *mnt)
+                                  struct vfsmount *mnt)
 {
        struct dentry *root;
        int ret;
@@ -1649,7 +1649,7 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags,
        }
 
        /* mount_subvol() will free subvol_name and mnt_root */
-       root = mount_subvol(subvol_name, subvol_objectid, device_name, mnt_root);
+       root = mount_subvol(subvol_name, subvol_objectid, mnt_root);
 
 out:
        return root;