vol_args 1605 fs/btrfs/ioctl.c struct btrfs_ioctl_vol_args *vol_args; vol_args 1626 fs/btrfs/ioctl.c vol_args = memdup_user(arg, sizeof(*vol_args)); vol_args 1627 fs/btrfs/ioctl.c if (IS_ERR(vol_args)) { vol_args 1628 fs/btrfs/ioctl.c ret = PTR_ERR(vol_args); vol_args 1632 fs/btrfs/ioctl.c vol_args->name[BTRFS_PATH_NAME_MAX] = '\0'; vol_args 1634 fs/btrfs/ioctl.c sizestr = vol_args->name; vol_args 1639 fs/btrfs/ioctl.c devstr = vol_args->name; vol_args 1731 fs/btrfs/ioctl.c kfree(vol_args); vol_args 1803 fs/btrfs/ioctl.c struct btrfs_ioctl_vol_args *vol_args; vol_args 1809 fs/btrfs/ioctl.c vol_args = memdup_user(arg, sizeof(*vol_args)); vol_args 1810 fs/btrfs/ioctl.c if (IS_ERR(vol_args)) vol_args 1811 fs/btrfs/ioctl.c return PTR_ERR(vol_args); vol_args 1812 fs/btrfs/ioctl.c vol_args->name[BTRFS_PATH_NAME_MAX] = '\0'; vol_args 1814 fs/btrfs/ioctl.c ret = btrfs_ioctl_snap_create_transid(file, vol_args->name, vol_args 1815 fs/btrfs/ioctl.c vol_args->fd, subvol, vol_args 1818 fs/btrfs/ioctl.c kfree(vol_args); vol_args 1825 fs/btrfs/ioctl.c struct btrfs_ioctl_vol_args_v2 *vol_args; vol_args 1835 fs/btrfs/ioctl.c vol_args = memdup_user(arg, sizeof(*vol_args)); vol_args 1836 fs/btrfs/ioctl.c if (IS_ERR(vol_args)) vol_args 1837 fs/btrfs/ioctl.c return PTR_ERR(vol_args); vol_args 1838 fs/btrfs/ioctl.c vol_args->name[BTRFS_SUBVOL_NAME_MAX] = '\0'; vol_args 1840 fs/btrfs/ioctl.c if (vol_args->flags & vol_args 1847 fs/btrfs/ioctl.c if (vol_args->flags & BTRFS_SUBVOL_CREATE_ASYNC) { vol_args 1856 fs/btrfs/ioctl.c if (vol_args->flags & BTRFS_SUBVOL_RDONLY) vol_args 1858 fs/btrfs/ioctl.c if (vol_args->flags & BTRFS_SUBVOL_QGROUP_INHERIT) { vol_args 1859 fs/btrfs/ioctl.c if (vol_args->size > PAGE_SIZE) { vol_args 1863 fs/btrfs/ioctl.c inherit = memdup_user(vol_args->qgroup_inherit, vol_args->size); vol_args 1870 fs/btrfs/ioctl.c ret = btrfs_ioctl_snap_create_transid(file, vol_args->name, vol_args 1871 fs/btrfs/ioctl.c vol_args->fd, subvol, ptr, vol_args 1885 fs/btrfs/ioctl.c kfree(vol_args); vol_args 2849 fs/btrfs/ioctl.c struct btrfs_ioctl_vol_args *vol_args; vol_args 2856 fs/btrfs/ioctl.c vol_args = memdup_user(arg, sizeof(*vol_args)); vol_args 2857 fs/btrfs/ioctl.c if (IS_ERR(vol_args)) vol_args 2858 fs/btrfs/ioctl.c return PTR_ERR(vol_args); vol_args 2860 fs/btrfs/ioctl.c vol_args->name[BTRFS_PATH_NAME_MAX] = '\0'; vol_args 2861 fs/btrfs/ioctl.c namelen = strlen(vol_args->name); vol_args 2862 fs/btrfs/ioctl.c if (strchr(vol_args->name, '/') || vol_args 2863 fs/btrfs/ioctl.c strncmp(vol_args->name, "..", namelen) == 0) { vol_args 2876 fs/btrfs/ioctl.c dentry = lookup_one_len(vol_args->name, parent, namelen); vol_args 2948 fs/btrfs/ioctl.c kfree(vol_args); vol_args 3026 fs/btrfs/ioctl.c struct btrfs_ioctl_vol_args *vol_args; vol_args 3035 fs/btrfs/ioctl.c vol_args = memdup_user(arg, sizeof(*vol_args)); vol_args 3036 fs/btrfs/ioctl.c if (IS_ERR(vol_args)) { vol_args 3037 fs/btrfs/ioctl.c ret = PTR_ERR(vol_args); vol_args 3041 fs/btrfs/ioctl.c vol_args->name[BTRFS_PATH_NAME_MAX] = '\0'; vol_args 3042 fs/btrfs/ioctl.c ret = btrfs_init_new_device(fs_info, vol_args->name); vol_args 3045 fs/btrfs/ioctl.c btrfs_info(fs_info, "disk added %s", vol_args->name); vol_args 3047 fs/btrfs/ioctl.c kfree(vol_args); vol_args 3057 fs/btrfs/ioctl.c struct btrfs_ioctl_vol_args_v2 *vol_args; vol_args 3067 fs/btrfs/ioctl.c vol_args = memdup_user(arg, sizeof(*vol_args)); vol_args 3068 fs/btrfs/ioctl.c if (IS_ERR(vol_args)) { vol_args 3069 fs/btrfs/ioctl.c ret = PTR_ERR(vol_args); vol_args 3074 fs/btrfs/ioctl.c if (vol_args->flags & ~BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED) { vol_args 3084 fs/btrfs/ioctl.c if (vol_args->flags & BTRFS_DEVICE_SPEC_BY_ID) { vol_args 3085 fs/btrfs/ioctl.c ret = btrfs_rm_device(fs_info, NULL, vol_args->devid); vol_args 3087 fs/btrfs/ioctl.c vol_args->name[BTRFS_SUBVOL_NAME_MAX] = '\0'; vol_args 3088 fs/btrfs/ioctl.c ret = btrfs_rm_device(fs_info, vol_args->name, 0); vol_args 3093 fs/btrfs/ioctl.c if (vol_args->flags & BTRFS_DEVICE_SPEC_BY_ID) vol_args 3095 fs/btrfs/ioctl.c vol_args->devid); vol_args 3098 fs/btrfs/ioctl.c vol_args->name); vol_args 3101 fs/btrfs/ioctl.c kfree(vol_args); vol_args 3111 fs/btrfs/ioctl.c struct btrfs_ioctl_vol_args *vol_args; vol_args 3126 fs/btrfs/ioctl.c vol_args = memdup_user(arg, sizeof(*vol_args)); vol_args 3127 fs/btrfs/ioctl.c if (IS_ERR(vol_args)) { vol_args 3128 fs/btrfs/ioctl.c ret = PTR_ERR(vol_args); vol_args 3132 fs/btrfs/ioctl.c vol_args->name[BTRFS_PATH_NAME_MAX] = '\0'; vol_args 3133 fs/btrfs/ioctl.c ret = btrfs_rm_device(fs_info, vol_args->name, 0); vol_args 3136 fs/btrfs/ioctl.c btrfs_info(fs_info, "disk deleted %s", vol_args->name); vol_args 3137 fs/btrfs/ioctl.c kfree(vol_args);