Commit 52f75f4f authored by David Sterba's avatar David Sterba

btrfs: constify name of subvolume in creation helpers

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 14a3357b
...@@ -434,7 +434,7 @@ int btrfs_is_empty_uuid(u8 *uuid) ...@@ -434,7 +434,7 @@ int btrfs_is_empty_uuid(u8 *uuid)
static noinline int create_subvol(struct inode *dir, static noinline int create_subvol(struct inode *dir,
struct dentry *dentry, struct dentry *dentry,
char *name, int namelen, const char *name, int namelen,
u64 *async_transid, u64 *async_transid,
struct btrfs_qgroup_inherit *inherit) struct btrfs_qgroup_inherit *inherit)
{ {
...@@ -832,7 +832,7 @@ static inline int btrfs_may_create(struct inode *dir, struct dentry *child) ...@@ -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. * inside this filesystem so it's quite a bit simpler.
*/ */
static noinline int btrfs_mksubvol(const struct path *parent, static noinline int btrfs_mksubvol(const struct path *parent,
char *name, int namelen, const char *name, int namelen,
struct btrfs_root *snap_src, struct btrfs_root *snap_src,
u64 *async_transid, bool readonly, u64 *async_transid, bool readonly,
struct btrfs_qgroup_inherit *inherit) struct btrfs_qgroup_inherit *inherit)
...@@ -1625,7 +1625,7 @@ static noinline int btrfs_ioctl_resize(struct file *file, ...@@ -1625,7 +1625,7 @@ static noinline int btrfs_ioctl_resize(struct file *file,
} }
static noinline int btrfs_ioctl_snap_create_transid(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, u64 *transid, bool readonly,
struct btrfs_qgroup_inherit *inherit) struct btrfs_qgroup_inherit *inherit)
{ {
......
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