Lines Matching refs:aclnode

471 	zfs_acl_node_t *aclnode;
473 aclnode = kmem_zalloc(sizeof (zfs_acl_node_t), KM_SLEEP);
475 aclnode->z_acldata = kmem_alloc(bytes, KM_SLEEP);
476 aclnode->z_allocdata = aclnode->z_acldata;
477 aclnode->z_allocsize = bytes;
478 aclnode->z_size = bytes;
481 return (aclnode);
485 zfs_acl_node_free(zfs_acl_node_t *aclnode)
487 if (aclnode->z_allocsize)
488 kmem_free(aclnode->z_allocdata, aclnode->z_allocsize);
489 kmem_free(aclnode, sizeof (zfs_acl_node_t));
495 zfs_acl_node_t *aclnode;
497 while (aclnode = list_head(&aclp->z_acl)) {
498 list_remove(&aclp->z_acl, aclnode);
499 zfs_acl_node_free(aclnode);
577 zfs_acl_node_t *aclnode;
582 aclnode = list_head(&aclp->z_acl);
583 if (aclnode == NULL)
586 aclp->z_next_ace = aclnode->z_acldata;
587 aclp->z_curr_node = aclnode;
588 aclnode->z_ace_idx = 0;
591 aclnode = aclp->z_curr_node;
593 if (aclnode == NULL)
596 if (aclnode->z_ace_idx >= aclnode->z_ace_count) {
597 aclnode = list_next(&aclp->z_acl, aclnode);
598 if (aclnode == NULL)
601 aclp->z_curr_node = aclnode;
602 aclnode->z_ace_idx = 0;
603 aclp->z_next_ace = aclnode->z_acldata;
607 if (aclnode->z_ace_idx < aclnode->z_ace_count) {
617 ((caddr_t)aclnode->z_acldata + aclnode->z_size)) {
626 aclnode->z_ace_idx++;
1067 zfs_acl_node_t *aclnode;
1103 aclnode = zfs_acl_node_alloc(aclsize);
1104 aclnode->z_ace_count = aclp->z_acl_count;
1105 aclnode->z_size = aclsize;
1110 znode_acl.z_acl_extern_obj, 0, aclnode->z_size,
1111 aclnode->z_acldata, DMU_READ_PREFETCH);
1113 bcopy(znode_acl.z_ace_data, aclnode->z_acldata,
1114 aclnode->z_size);
1118 aclnode->z_acldata, aclnode->z_size);
1123 zfs_acl_node_free(aclnode);
1130 list_insert_head(&aclp->z_acl, aclnode);
1235 zfs_acl_node_t *aclnode;
1271 for (aclnode = list_head(&aclp->z_acl); aclnode;
1272 aclnode = list_next(&aclp->z_acl, aclnode)) {
1273 if (aclnode->z_ace_count == 0)
1276 aclnode->z_size, aclnode->z_acldata, tx);
1277 off += aclnode->z_size;
1292 for (aclnode = list_head(&aclp->z_acl); aclnode;
1293 aclnode = list_next(&aclp->z_acl, aclnode)) {
1294 if (aclnode->z_ace_count == 0)
1296 bcopy(aclnode->z_acldata, start,
1297 aclnode->z_size);
1298 start = (caddr_t)start + aclnode->z_size;
1501 zfs_acl_node_t *aclnode;
1551 aclnode = zfs_acl_node_alloc(ace_size);
1552 list_insert_tail(&aclp->z_acl, aclnode);
1553 acep = aclnode->z_acldata;
1568 aclnode->z_ace_count++;
1569 aclp->z_acl_bytes += aclnode->z_size;
1834 zfs_acl_node_t *aclnode;
1837 for (aclnode = list_head(&aclp->z_acl); aclnode;
1838 aclnode = list_next(&aclp->z_acl, aclnode)) {
1839 bcopy(aclnode->z_acldata, start,
1840 aclnode->z_size);
1841 start = (caddr_t)start + aclnode->z_size;
1867 zfs_acl_node_t *aclnode;
1877 aclnode = zfs_acl_node_alloc(aclcnt * sizeof (zfs_object_ace_t));
1880 (ace_t *)vsecp->vsa_aclentp, aclnode->z_acldata,
1881 aclcnt, &aclnode->z_size)) != 0) {
1883 zfs_acl_node_free(aclnode);
1888 vsecp->vsa_aclentp, aclnode->z_acldata, aclcnt,
1889 &aclnode->z_size, fuidp, cr)) != 0) {
1891 zfs_acl_node_free(aclnode);
1895 aclp->z_acl_bytes = aclnode->z_size;
1896 aclnode->z_ace_count = aclcnt;
1898 list_insert_head(&aclp->z_acl, aclnode);