Lines Matching refs:rootrefs
3128 struct btrfs_ioctl_get_subvol_rootref_args *rootrefs; in btrfs_ioctl_get_subvol_rootref() local
3142 rootrefs = memdup_user(argp, sizeof(*rootrefs)); in btrfs_ioctl_get_subvol_rootref()
3143 if (IS_ERR(rootrefs)) { in btrfs_ioctl_get_subvol_rootref()
3145 return PTR_ERR(rootrefs); in btrfs_ioctl_get_subvol_rootref()
3151 key.offset = rootrefs->min_treeid; in btrfs_ioctl_get_subvol_rootref()
3184 rootrefs->rootref[found].treeid = key.offset; in btrfs_ioctl_get_subvol_rootref()
3185 rootrefs->rootref[found].dirid = in btrfs_ioctl_get_subvol_rootref()
3202 rootrefs->num_items = found; in btrfs_ioctl_get_subvol_rootref()
3205 rootrefs->min_treeid = in btrfs_ioctl_get_subvol_rootref()
3206 rootrefs->rootref[found - 1].treeid + 1; in btrfs_ioctl_get_subvol_rootref()
3207 if (copy_to_user(argp, rootrefs, sizeof(*rootrefs))) in btrfs_ioctl_get_subvol_rootref()
3211 kfree(rootrefs); in btrfs_ioctl_get_subvol_rootref()