Lines Matching defs:inherit
570 static unsigned int create_subvol_num_items(struct btrfs_qgroup_inherit *inherit)
586 if (inherit) {
588 num_items += 2 * inherit->num_qgroups;
595 struct btrfs_qgroup_inherit *inherit)
647 trans_num_items += create_subvol_num_items(inherit);
671 ret = btrfs_qgroup_inherit(trans, 0, objectid, root->root_key.objectid, inherit);
795 struct btrfs_qgroup_inherit *inherit)
847 trans_num_items = create_subvol_num_items(inherit) + 3;
858 pending_snapshot->inherit = inherit;
993 struct btrfs_qgroup_inherit *inherit)
1029 error = create_snapshot(snap_src, dir, dentry, readonly, inherit);
1031 error = create_subvol(idmap, dir, dentry, inherit);
1049 struct btrfs_qgroup_inherit *inherit)
1076 root, readonly, inherit);
1284 struct btrfs_qgroup_inherit *inherit)
1310 namelen, NULL, readonly, inherit);
1343 readonly, inherit);
1384 struct btrfs_qgroup_inherit *inherit = NULL;
1406 if (vol_args->size < sizeof(*inherit) ||
1411 inherit = memdup_user(vol_args->qgroup_inherit, vol_args->size);
1412 if (IS_ERR(inherit)) {
1413 ret = PTR_ERR(inherit);
1417 ret = btrfs_qgroup_check_inherit(fs_info, inherit, vol_args->size);
1424 readonly, inherit);
1428 kfree(inherit);