Skip to content

Commit 841c20a

Browse files
committed
btrfs: pass bool to indicate subvolume/snapshot creation type
Signed-off-by: David Sterba <dsterba@suse.com>
1 parent c5d2cdb commit 841c20a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/btrfs/ioctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ static noinline int btrfs_ioctl_resize(struct file *file,
11821182

11831183
static noinline int __btrfs_ioctl_snap_create(struct file *file,
11841184
struct mnt_idmap *idmap,
1185-
const char *name, unsigned long fd, int subvol,
1185+
const char *name, unsigned long fd, bool subvol,
11861186
bool readonly,
11871187
struct btrfs_qgroup_inherit *inherit)
11881188
{
@@ -1276,7 +1276,7 @@ static noinline int btrfs_ioctl_snap_create(struct file *file,
12761276
}
12771277

12781278
static noinline int btrfs_ioctl_snap_create_v2(struct file *file,
1279-
void __user *arg, int subvol)
1279+
void __user *arg, bool subvol)
12801280
{
12811281
struct btrfs_ioctl_vol_args_v2 *vol_args;
12821282
int ret;

0 commit comments

Comments
 (0)