Lines Matching defs:acl
24 struct posix_acl *acl;
45 acl = posix_acl_from_xattr(&init_user_ns, value, size);
47 acl = NULL;
49 acl = ERR_PTR(size);
52 return acl;
56 struct inode *inode, struct posix_acl *acl, int type)
68 return acl ? -EINVAL : 0;
75 if (acl) {
78 size = posix_acl_xattr_size(acl->a_count);
91 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size);
105 set_cached_acl(inode, type, acl);
110 int btrfs_set_acl(struct inode *inode, struct posix_acl *acl, int type)
115 if (type == ACL_TYPE_ACCESS && acl) {
116 ret = posix_acl_update_mode(inode, &inode->i_mode, &acl);
120 ret = __btrfs_set_acl(NULL, inode, acl, type);
129 struct posix_acl *default_acl, *acl;
136 ret = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl);
146 if (acl) {
148 ret = __btrfs_set_acl(trans, inode, acl,
150 posix_acl_release(acl);
153 if (!default_acl && !acl)