]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
btrfs: remove unused parameter from create_snapshot
authorDavid Sterba <dsterba@suse.com>
Fri, 10 Feb 2017 18:54:06 +0000 (19:54 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:54 +0000 (12:03 +0100)
The name parameters have never been used, as the name is passed via the
dentry.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c

index 2e75262fc1245c0ab2797cb1cd8e9ec3ab4e3e39..4f360b17dfe2896ae806ac4caf3e5abb250fe59d 100644 (file)
@@ -656,7 +656,7 @@ static void btrfs_wait_for_no_snapshoting_writes(struct btrfs_root *root)
 }
 
 static int create_snapshot(struct btrfs_root *root, struct inode *dir,
-                          struct dentry *dentry, char *name, int namelen,
+                          struct dentry *dentry,
                           u64 *async_transid, bool readonly,
                           struct btrfs_qgroup_inherit *inherit)
 {
@@ -871,7 +871,7 @@ static noinline int btrfs_mksubvol(const struct path *parent,
                goto out_up_read;
 
        if (snap_src) {
-               error = create_snapshot(snap_src, dir, dentry, name, namelen,
+               error = create_snapshot(snap_src, dir, dentry,
                                        async_transid, readonly, inherit);
        } else {
                error = create_subvol(dir, dentry, name, namelen,