Skip to content

Commit

Permalink
btrfs: constify name of subvolume in creation helpers
Browse files Browse the repository at this point in the history
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
David Sterba committed Feb 28, 2017
1 parent 14a3357 commit 52f75f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ int btrfs_is_empty_uuid(u8 *uuid)

static noinline int create_subvol(struct inode *dir,
struct dentry *dentry,
char *name, int namelen,
const char *name, int namelen,
u64 *async_transid,
struct btrfs_qgroup_inherit *inherit)
{
Expand Down Expand Up @@ -832,7 +832,7 @@ static inline int btrfs_may_create(struct inode *dir, struct dentry *child)
* inside this filesystem so it's quite a bit simpler.
*/
static noinline int btrfs_mksubvol(const struct path *parent,
char *name, int namelen,
const char *name, int namelen,
struct btrfs_root *snap_src,
u64 *async_transid, bool readonly,
struct btrfs_qgroup_inherit *inherit)
Expand Down Expand Up @@ -1625,7 +1625,7 @@ static noinline int btrfs_ioctl_resize(struct file *file,
}

static noinline int btrfs_ioctl_snap_create_transid(struct file *file,
char *name, unsigned long fd, int subvol,
const char *name, unsigned long fd, int subvol,
u64 *transid, bool readonly,
struct btrfs_qgroup_inherit *inherit)
{
Expand Down

0 comments on commit 52f75f4

Please sign in to comment.