Lines Matching refs:perm

1760 	struct ceph_pool_perm *perm;  in __ceph_pool_perm_get()  local
1768 perm = rb_entry(*p, struct ceph_pool_perm, node); in __ceph_pool_perm_get()
1769 if (pool < perm->pool) in __ceph_pool_perm_get()
1771 else if (pool > perm->pool) in __ceph_pool_perm_get()
1775 perm->pool_ns, in __ceph_pool_perm_get()
1776 perm->pool_ns_len); in __ceph_pool_perm_get()
1782 have = perm->perm; in __ceph_pool_perm_get()
1802 perm = rb_entry(parent, struct ceph_pool_perm, node); in __ceph_pool_perm_get()
1803 if (pool < perm->pool) in __ceph_pool_perm_get()
1805 else if (pool > perm->pool) in __ceph_pool_perm_get()
1809 perm->pool_ns, in __ceph_pool_perm_get()
1810 perm->pool_ns_len); in __ceph_pool_perm_get()
1816 have = perm->perm; in __ceph_pool_perm_get()
1897 perm = kmalloc(sizeof(*perm) + pool_ns_len + 1, GFP_NOFS); in __ceph_pool_perm_get()
1898 if (!perm) { in __ceph_pool_perm_get()
1903 perm->pool = pool; in __ceph_pool_perm_get()
1904 perm->perm = have; in __ceph_pool_perm_get()
1905 perm->pool_ns_len = pool_ns_len; in __ceph_pool_perm_get()
1907 memcpy(perm->pool_ns, pool_ns->str, pool_ns_len); in __ceph_pool_perm_get()
1908 perm->pool_ns[pool_ns_len] = 0; in __ceph_pool_perm_get()
1910 rb_link_node(&perm->node, parent, p); in __ceph_pool_perm_get()
1911 rb_insert_color(&perm->node, &mdsc->pool_perm_tree); in __ceph_pool_perm_get()
1998 struct ceph_pool_perm *perm; in ceph_pool_perm_destroy() local
2003 perm = rb_entry(n, struct ceph_pool_perm, node); in ceph_pool_perm_destroy()
2005 kfree(perm); in ceph_pool_perm_destroy()