Lines Matching refs:acl
4640 static void nfs4_set_cached_acl(struct inode *inode, struct nfs4_cached_acl *acl) in nfs4_set_cached_acl() argument
4646 nfsi->nfs4_acl = acl; in nfs4_set_cached_acl()
4658 struct nfs4_cached_acl *acl; in nfs4_read_cached_acl() local
4662 acl = nfsi->nfs4_acl; in nfs4_read_cached_acl()
4663 if (acl == NULL) in nfs4_read_cached_acl()
4667 if (acl->cached == 0) in nfs4_read_cached_acl()
4670 if (acl->len > buflen) in nfs4_read_cached_acl()
4672 memcpy(buf, acl->data, acl->len); in nfs4_read_cached_acl()
4674 ret = acl->len; in nfs4_read_cached_acl()
4682 struct nfs4_cached_acl *acl; in nfs4_write_cached_acl() local
4683 size_t buflen = sizeof(*acl) + acl_len; in nfs4_write_cached_acl()
4686 acl = kmalloc(buflen, GFP_KERNEL); in nfs4_write_cached_acl()
4687 if (acl == NULL) in nfs4_write_cached_acl()
4689 acl->cached = 1; in nfs4_write_cached_acl()
4690 _copy_from_pages(acl->data, pages, pgbase, acl_len); in nfs4_write_cached_acl()
4692 acl = kmalloc(sizeof(*acl), GFP_KERNEL); in nfs4_write_cached_acl()
4693 if (acl == NULL) in nfs4_write_cached_acl()
4695 acl->cached = 0; in nfs4_write_cached_acl()
4697 acl->len = acl_len; in nfs4_write_cached_acl()
4699 nfs4_set_cached_acl(inode, acl); in nfs4_write_cached_acl()