Commit 61d7e4cb authored by David Sterba's avatar David Sterba

btrfs: remove unused parameter from create_snapshot

The name parameters have never been used, as the name is passed via the
dentry.
Reviewed-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent e4a4dce7
...@@ -656,7 +656,7 @@ static void btrfs_wait_for_no_snapshoting_writes(struct btrfs_root *root) ...@@ -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, 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, u64 *async_transid, bool readonly,
struct btrfs_qgroup_inherit *inherit) struct btrfs_qgroup_inherit *inherit)
{ {
...@@ -871,7 +871,7 @@ static noinline int btrfs_mksubvol(const struct path *parent, ...@@ -871,7 +871,7 @@ static noinline int btrfs_mksubvol(const struct path *parent,
goto out_up_read; goto out_up_read;
if (snap_src) { if (snap_src) {
error = create_snapshot(snap_src, dir, dentry, name, namelen, error = create_snapshot(snap_src, dir, dentry,
async_transid, readonly, inherit); async_transid, readonly, inherit);
} else { } else {
error = create_subvol(dir, dentry, name, namelen, error = create_subvol(dir, dentry, name, namelen,
......
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