Lines Matching refs:inherit

558 static unsigned int create_subvol_num_items(struct btrfs_qgroup_inherit *inherit)  in create_subvol_num_items()  argument
574 if (inherit) { in create_subvol_num_items()
576 num_items += 2 * inherit->num_qgroups; in create_subvol_num_items()
583 struct btrfs_qgroup_inherit *inherit) in create_subvol() argument
634 trans_num_items += create_subvol_num_items(inherit); in create_subvol()
651 ret = btrfs_qgroup_inherit(trans, 0, objectid, inherit); in create_subvol()
776 struct btrfs_qgroup_inherit *inherit) in create_snapshot() argument
823 trans_num_items = create_subvol_num_items(inherit) + 3; in create_snapshot()
834 pending_snapshot->inherit = inherit; in create_snapshot()
958 struct btrfs_qgroup_inherit *inherit) in btrfs_mksubvol() argument
994 error = create_snapshot(snap_src, dir, dentry, readonly, inherit); in btrfs_mksubvol()
996 error = create_subvol(idmap, dir, dentry, inherit); in btrfs_mksubvol()
1014 struct btrfs_qgroup_inherit *inherit) in btrfs_mksnapshot() argument
1041 root, readonly, inherit); in btrfs_mksnapshot()
1246 struct btrfs_qgroup_inherit *inherit) in __btrfs_ioctl_snap_create() argument
1272 namelen, NULL, readonly, inherit); in __btrfs_ioctl_snap_create()
1296 readonly, inherit); in __btrfs_ioctl_snap_create()
1334 struct btrfs_qgroup_inherit *inherit = NULL; in btrfs_ioctl_snap_create_v2() local
1354 if (vol_args->size < sizeof(*inherit) || in btrfs_ioctl_snap_create_v2()
1359 inherit = memdup_user(vol_args->qgroup_inherit, vol_args->size); in btrfs_ioctl_snap_create_v2()
1360 if (IS_ERR(inherit)) { in btrfs_ioctl_snap_create_v2()
1361 ret = PTR_ERR(inherit); in btrfs_ioctl_snap_create_v2()
1365 if (inherit->num_qgroups > PAGE_SIZE || in btrfs_ioctl_snap_create_v2()
1366 inherit->num_ref_copies > PAGE_SIZE || in btrfs_ioctl_snap_create_v2()
1367 inherit->num_excl_copies > PAGE_SIZE) { in btrfs_ioctl_snap_create_v2()
1372 nums = inherit->num_qgroups + 2 * inherit->num_ref_copies + in btrfs_ioctl_snap_create_v2()
1373 2 * inherit->num_excl_copies; in btrfs_ioctl_snap_create_v2()
1374 if (vol_args->size != struct_size(inherit, qgroups, nums)) { in btrfs_ioctl_snap_create_v2()
1382 readonly, inherit); in btrfs_ioctl_snap_create_v2()
1386 kfree(inherit); in btrfs_ioctl_snap_create_v2()