Lines Matching refs:rootrefs
2256 struct btrfs_ioctl_get_subvol_rootref_args *rootrefs; in btrfs_ioctl_get_subvol_rootref() local
2270 rootrefs = memdup_user(argp, sizeof(*rootrefs)); in btrfs_ioctl_get_subvol_rootref()
2271 if (IS_ERR(rootrefs)) { in btrfs_ioctl_get_subvol_rootref()
2273 return PTR_ERR(rootrefs); in btrfs_ioctl_get_subvol_rootref()
2279 key.offset = rootrefs->min_treeid; in btrfs_ioctl_get_subvol_rootref()
2312 rootrefs->rootref[found].treeid = key.offset; in btrfs_ioctl_get_subvol_rootref()
2313 rootrefs->rootref[found].dirid = in btrfs_ioctl_get_subvol_rootref()
2330 rootrefs->num_items = found; in btrfs_ioctl_get_subvol_rootref()
2333 rootrefs->min_treeid = in btrfs_ioctl_get_subvol_rootref()
2334 rootrefs->rootref[found - 1].treeid + 1; in btrfs_ioctl_get_subvol_rootref()
2335 if (copy_to_user(argp, rootrefs, sizeof(*rootrefs))) in btrfs_ioctl_get_subvol_rootref()
2339 kfree(rootrefs); in btrfs_ioctl_get_subvol_rootref()