]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
btrfs: pass bool to indicate subvolume/snapshot creation type
authorDavid Sterba <dsterba@suse.com>
Thu, 26 Jun 2025 14:30:11 +0000 (16:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 22:05:00 +0000 (00:05 +0200)
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c

index c0fa1b3584df25b24001d44238fb1ddbaea1d4d5..4be09b4152f69e71f4bfa35e588805d8336c137f 100644 (file)
@@ -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;