Lines Matching refs:acl
48 struct afs_acl *acl = NULL; in afs_xattr_get_acl() local
68 acl = afs_fs_fetch_acl(&fc, scb); in afs_xattr_get_acl()
78 ret = acl->size; in afs_xattr_get_acl()
80 if (acl->size <= size) in afs_xattr_get_acl()
81 memcpy(buffer, acl->data, acl->size); in afs_xattr_get_acl()
85 kfree(acl); in afs_xattr_get_acl()
106 struct afs_acl *acl = NULL; in afs_xattr_set_acl() local
117 acl = kmalloc(sizeof(*acl) + size, GFP_KERNEL); in afs_xattr_set_acl()
118 if (!acl) in afs_xattr_set_acl()
127 acl->size = size; in afs_xattr_set_acl()
128 memcpy(acl->data, buffer, size); in afs_xattr_set_acl()
136 afs_fs_store_acl(&fc, acl, scb); in afs_xattr_set_acl()
147 kfree(acl); in afs_xattr_set_acl()
226 data = yacl->acl->data; in afs_xattr_get_yfs()
227 dsize = yacl->acl->size; in afs_xattr_get_yfs()
276 struct afs_acl *acl = NULL; in afs_xattr_set_yfs() local
288 acl = kmalloc(sizeof(*acl) + size, GFP_KERNEL); in afs_xattr_set_yfs()
289 if (!acl) in afs_xattr_set_yfs()
292 acl->size = size; in afs_xattr_set_yfs()
293 memcpy(acl->data, buffer, size); in afs_xattr_set_yfs()
307 yfs_fs_store_opaque_acl2(&fc, acl, scb); in afs_xattr_set_yfs()
317 kfree(acl); in afs_xattr_set_yfs()