Lines Matching refs:acl
4486 static void nfs4_set_cached_acl(struct inode *inode, struct nfs4_cached_acl *acl) in nfs4_set_cached_acl() argument
4492 nfsi->nfs4_acl = acl; in nfs4_set_cached_acl()
4504 struct nfs4_cached_acl *acl; in nfs4_read_cached_acl() local
4508 acl = nfsi->nfs4_acl; in nfs4_read_cached_acl()
4509 if (acl == NULL) in nfs4_read_cached_acl()
4513 if (acl->cached == 0) in nfs4_read_cached_acl()
4516 if (acl->len > buflen) in nfs4_read_cached_acl()
4518 memcpy(buf, acl->data, acl->len); in nfs4_read_cached_acl()
4520 ret = acl->len; in nfs4_read_cached_acl()
4528 struct nfs4_cached_acl *acl; in nfs4_write_cached_acl() local
4529 size_t buflen = sizeof(*acl) + acl_len; in nfs4_write_cached_acl()
4532 acl = kmalloc(buflen, GFP_KERNEL); in nfs4_write_cached_acl()
4533 if (acl == NULL) in nfs4_write_cached_acl()
4535 acl->cached = 1; in nfs4_write_cached_acl()
4536 _copy_from_pages(acl->data, pages, pgbase, acl_len); in nfs4_write_cached_acl()
4538 acl = kmalloc(sizeof(*acl), GFP_KERNEL); in nfs4_write_cached_acl()
4539 if (acl == NULL) in nfs4_write_cached_acl()
4541 acl->cached = 0; in nfs4_write_cached_acl()
4543 acl->len = acl_len; in nfs4_write_cached_acl()
4545 nfs4_set_cached_acl(inode, acl); in nfs4_write_cached_acl()