Lines Matching defs:acl
28 static void nfs3_complete_get_acl(struct posix_acl **p, struct posix_acl *acl)
33 posix_acl_dup(acl);
34 if (cmpxchg(p, sentinel, acl) != sentinel)
35 posix_acl_release(acl);
75 * Only get the access acl when explicitly requested: We don't
77 * it. Applications which request the access acl first are not
161 static int __nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
170 .acl_access = acl,
179 if (acl == NULL && (!S_ISDIR(inode->i_mode) || dfacl == NULL))
189 if (acl != NULL && acl->a_count > NFS_ACL_MAX_ENTRIES)
196 args.len = nfsacl_size(acl, dfacl);
198 args.len = nfsacl_size(acl, NULL);
248 int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
252 ret = __nfs3_proc_setacls(inode, acl, dfacl);
258 struct posix_acl *acl, int type)
260 struct posix_acl *orig = acl, *dfacl = NULL, *alloc;
277 dfacl = acl;
278 acl = alloc;
283 if (acl == NULL) {
287 acl = alloc;
289 status = __nfs3_proc_setacls(inode, acl, dfacl);
291 if (acl != orig)
292 posix_acl_release(acl);
306 struct posix_acl *acl;
309 acl = get_inode_acl(inode, type);
310 if (IS_ERR_OR_NULL(acl))
313 posix_acl_release(acl);