Lines Matching refs:acl
29 static void nfs3_complete_get_acl(struct posix_acl **p, struct posix_acl *acl) in nfs3_complete_get_acl() argument
34 posix_acl_dup(acl); in nfs3_complete_get_acl()
35 if (cmpxchg(p, sentinel, acl) != sentinel) in nfs3_complete_get_acl()
36 posix_acl_release(acl); in nfs3_complete_get_acl()
158 static int __nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, in __nfs3_proc_setacls() argument
167 .acl_access = acl, in __nfs3_proc_setacls()
176 if (acl == NULL && (!S_ISDIR(inode->i_mode) || dfacl == NULL)) in __nfs3_proc_setacls()
186 if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES) in __nfs3_proc_setacls()
193 args.len = nfsacl_size(acl, dfacl); in __nfs3_proc_setacls()
195 args.len = nfsacl_size(acl, NULL); in __nfs3_proc_setacls()
245 int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, in nfs3_proc_setacls() argument
249 ret = __nfs3_proc_setacls(inode, acl, dfacl); in nfs3_proc_setacls()
254 int nfs3_set_acl(struct inode *inode, struct posix_acl *acl, int type) in nfs3_set_acl() argument
268 dfacl = acl; in nfs3_set_acl()
269 alloc = acl = get_acl(inode, ACL_TYPE_ACCESS); in nfs3_set_acl()
276 if (acl == NULL) { in nfs3_set_acl()
277 alloc = acl = posix_acl_from_mode(inode->i_mode, GFP_KERNEL); in nfs3_set_acl()
281 status = __nfs3_proc_setacls(inode, acl, dfacl); in nfs3_set_acl()
299 struct posix_acl *acl; in nfs3_list_one_acl() local
302 acl = get_acl(inode, type); in nfs3_list_one_acl()
303 if (IS_ERR_OR_NULL(acl)) in nfs3_list_one_acl()
306 posix_acl_release(acl); in nfs3_list_one_acl()