• Home
  • Raw
  • Download

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
256 struct posix_acl *orig = acl, *dfacl = NULL, *alloc; in nfs3_set_acl()
272 dfacl = acl; in nfs3_set_acl()
273 acl = alloc; in nfs3_set_acl()
278 if (acl == NULL) { in nfs3_set_acl()
282 acl = alloc; in nfs3_set_acl()
284 status = __nfs3_proc_setacls(inode, acl, dfacl); in nfs3_set_acl()
286 if (acl != orig) in nfs3_set_acl()
287 posix_acl_release(acl); in nfs3_set_acl()
307 struct posix_acl *acl; in nfs3_list_one_acl() local
310 acl = get_acl(inode, type); in nfs3_list_one_acl()
311 if (IS_ERR_OR_NULL(acl)) in nfs3_list_one_acl()
314 posix_acl_release(acl); in nfs3_list_one_acl()