Skip to content

Commit

Permalink
btrfs: remove unused parameter from create_snapshot
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Sterba committed Feb 17, 2017
1 parent e4a4dce commit 61d7e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 61d7e4c

Please sign in to comment.