From: David Sterba Date: Thu, 26 Jun 2025 14:30:11 +0000 (+0200) Subject: btrfs: pass bool to indicate subvolume/snapshot creation type X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8320febc6449f5bade61c8163fd472071e3752da;p=thirdparty%2Flinux.git btrfs: pass bool to indicate subvolume/snapshot creation type Reviewed-by: Boris Burkov Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index c0fa1b3584df2..4be09b4152f69 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -1182,7 +1182,7 @@ out_drop: static noinline int __btrfs_ioctl_snap_create(struct file *file, struct mnt_idmap *idmap, - const char *name, unsigned long fd, int subvol, + const char *name, unsigned long fd, bool subvol, bool readonly, struct btrfs_qgroup_inherit *inherit) { @@ -1276,7 +1276,7 @@ out: } static noinline int btrfs_ioctl_snap_create_v2(struct file *file, - void __user *arg, int subvol) + void __user *arg, bool subvol) { struct btrfs_ioctl_vol_args_v2 *vol_args; int ret;