Lines Matching refs:inherit
549 static unsigned int create_subvol_num_items(struct btrfs_qgroup_inherit *inherit) in create_subvol_num_items() argument
565 if (inherit) { in create_subvol_num_items()
567 num_items += 2 * inherit->num_qgroups; in create_subvol_num_items()
574 struct btrfs_qgroup_inherit *inherit) in create_subvol() argument
625 trans_num_items += create_subvol_num_items(inherit); in create_subvol()
642 ret = btrfs_qgroup_inherit(trans, 0, objectid, inherit); in create_subvol()
767 struct btrfs_qgroup_inherit *inherit) in create_snapshot() argument
817 trans_num_items = create_subvol_num_items(inherit) + 3; in create_snapshot()
828 pending_snapshot->inherit = inherit; in create_snapshot()
952 struct btrfs_qgroup_inherit *inherit) in btrfs_mksubvol() argument
988 error = create_snapshot(snap_src, dir, dentry, readonly, inherit); in btrfs_mksubvol()
990 error = create_subvol(mnt_userns, dir, dentry, inherit); in btrfs_mksubvol()
1008 struct btrfs_qgroup_inherit *inherit) in btrfs_mksnapshot() argument
1035 root, readonly, inherit); in btrfs_mksnapshot()
2142 struct btrfs_qgroup_inherit *inherit) in __btrfs_ioctl_snap_create() argument
2168 namelen, NULL, readonly, inherit); in __btrfs_ioctl_snap_create()
2201 readonly, inherit); in __btrfs_ioctl_snap_create()
2239 struct btrfs_qgroup_inherit *inherit = NULL; in btrfs_ioctl_snap_create_v2() local
2259 if (vol_args->size < sizeof(*inherit) || in btrfs_ioctl_snap_create_v2()
2264 inherit = memdup_user(vol_args->qgroup_inherit, vol_args->size); in btrfs_ioctl_snap_create_v2()
2265 if (IS_ERR(inherit)) { in btrfs_ioctl_snap_create_v2()
2266 ret = PTR_ERR(inherit); in btrfs_ioctl_snap_create_v2()
2270 if (inherit->num_qgroups > PAGE_SIZE || in btrfs_ioctl_snap_create_v2()
2271 inherit->num_ref_copies > PAGE_SIZE || in btrfs_ioctl_snap_create_v2()
2272 inherit->num_excl_copies > PAGE_SIZE) { in btrfs_ioctl_snap_create_v2()
2277 nums = inherit->num_qgroups + 2 * inherit->num_ref_copies + in btrfs_ioctl_snap_create_v2()
2278 2 * inherit->num_excl_copies; in btrfs_ioctl_snap_create_v2()
2279 if (vol_args->size != struct_size(inherit, qgroups, nums)) { in btrfs_ioctl_snap_create_v2()
2287 readonly, inherit); in btrfs_ioctl_snap_create_v2()
2291 kfree(inherit); in btrfs_ioctl_snap_create_v2()