Browse Source

constify btrfs_mksubvol()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 8 years ago
parent
commit
92872094a1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/btrfs/ioctl.c

+ 1 - 1
fs/btrfs/ioctl.c

@@ -836,7 +836,7 @@ static inline int btrfs_may_create(struct inode *dir, struct dentry *child)
  * sys_mkdirat and vfs_mkdir, but we only do a single component lookup
  * sys_mkdirat and vfs_mkdir, but we only do a single component lookup
  * 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(struct path *parent,
+static noinline int btrfs_mksubvol(const struct path *parent,
 				   char *name, int namelen,
 				   char *name, int namelen,
 				   struct btrfs_root *snap_src,
 				   struct btrfs_root *snap_src,
 				   u64 *async_transid, bool readonly,
 				   u64 *async_transid, bool readonly,