Lines Matching refs:acl

20 					int type, struct posix_acl *acl)  in ceph_set_cached_acl()  argument
26 set_cached_acl(inode, type, acl); in ceph_set_cached_acl()
38 struct posix_acl *acl; in ceph_get_acl() local
71 acl = posix_acl_from_xattr(&init_user_ns, value, size); in ceph_get_acl()
73 acl = NULL; in ceph_get_acl()
77 acl = ERR_PTR(-EIO); in ceph_get_acl()
82 if (!IS_ERR(acl)) in ceph_get_acl()
83 ceph_set_cached_acl(inode, type, acl); in ceph_get_acl()
85 return acl; in ceph_get_acl()
89 struct posix_acl *acl, int type) in ceph_set_acl() argument
106 if (acl) { in ceph_set_acl()
108 &new_mode, &acl); in ceph_set_acl()
115 ret = acl ? -EINVAL : 0; in ceph_set_acl()
125 if (acl) { in ceph_set_acl()
126 size = posix_acl_xattr_size(acl->a_count); in ceph_set_acl()
133 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in ceph_set_acl()
158 ceph_set_cached_acl(inode, type, acl); in ceph_set_acl()
169 struct posix_acl *acl, *default_acl; in ceph_pre_init_acls() local
175 err = posix_acl_create(dir, mode, &default_acl, &acl); in ceph_pre_init_acls()
179 if (acl) { in ceph_pre_init_acls()
180 err = posix_acl_equiv_mode(acl, mode); in ceph_pre_init_acls()
184 posix_acl_release(acl); in ceph_pre_init_acls()
185 acl = NULL; in ceph_pre_init_acls()
189 if (!default_acl && !acl) in ceph_pre_init_acls()
192 if (acl) in ceph_pre_init_acls()
193 val_size1 = posix_acl_xattr_size(acl->a_count); in ceph_pre_init_acls()
209 ceph_pagelist_encode_32(pagelist, acl && default_acl ? 2 : 1); in ceph_pre_init_acls()
211 if (acl) { in ceph_pre_init_acls()
218 err = posix_acl_to_xattr(&init_user_ns, acl, in ceph_pre_init_acls()
242 as_ctx->acl = acl; in ceph_pre_init_acls()
248 posix_acl_release(acl); in ceph_pre_init_acls()
260 ceph_set_cached_acl(inode, ACL_TYPE_ACCESS, as_ctx->acl); in ceph_init_inode_acls()