Lines Matching defs:acl
29 static void nfs3_complete_get_acl(struct posix_acl **p, struct posix_acl *acl)
34 posix_acl_dup(acl);
35 if (cmpxchg(p, sentinel, acl) != sentinel)
36 posix_acl_release(acl);
73 * Only get the access acl when explicitly requested: We don't
75 * it. Applications which request the access acl first are not
158 static int __nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
167 .acl_access = acl,
176 if (acl == NULL && (!S_ISDIR(inode->i_mode) || dfacl == NULL))
186 if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES)
193 args.len = nfsacl_size(acl, dfacl);
195 args.len = nfsacl_size(acl, NULL);
245 int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
249 ret = __nfs3_proc_setacls(inode, acl, dfacl);
254 int nfs3_set_acl(struct inode *inode, struct posix_acl *acl, int type)
256 struct posix_acl *orig = acl, *dfacl = NULL, *alloc;
272 dfacl = acl;
273 acl = alloc;
278 if (acl == NULL) {
282 acl = alloc;
284 status = __nfs3_proc_setacls(inode, acl, dfacl);
286 if (acl != orig)
287 posix_acl_release(acl);
307 struct posix_acl *acl;
310 acl = get_acl(inode, type);
311 if (IS_ERR_OR_NULL(acl))
314 posix_acl_release(acl);