Searched refs:vol_args2 (Results 1 – 1 of 1) sorted by relevance
237 static int btrfs_check_ioctl_vol_args2_subvol_name(const struct btrfs_ioctl_vol_args_v2 *vol_args2) in btrfs_check_ioctl_vol_args2_subvol_name() argument239 if (memchr(vol_args2->name, 0, sizeof(vol_args2->name)) == NULL) in btrfs_check_ioctl_vol_args2_subvol_name()2383 struct btrfs_ioctl_vol_args_v2 *vol_args2 = NULL; in btrfs_ioctl_snap_destroy() local2398 vol_args2 = memdup_user(arg, sizeof(*vol_args2)); in btrfs_ioctl_snap_destroy()2399 if (IS_ERR(vol_args2)) in btrfs_ioctl_snap_destroy()2400 return PTR_ERR(vol_args2); in btrfs_ioctl_snap_destroy()2402 if (vol_args2->flags & ~BTRFS_SUBVOL_DELETE_ARGS_MASK) { in btrfs_ioctl_snap_destroy()2411 if (!(vol_args2->flags & BTRFS_SUBVOL_SPEC_BY_ID)) { in btrfs_ioctl_snap_destroy()2412 ret = btrfs_check_ioctl_vol_args2_subvol_name(vol_args2); in btrfs_ioctl_snap_destroy()2415 subvol_name = vol_args2->name; in btrfs_ioctl_snap_destroy()[all …]