Lines Matching refs:acl
19 struct posix_acl *acl; in jfs_get_acl() local
46 acl = NULL; in jfs_get_acl()
48 acl = ERR_PTR(size); in jfs_get_acl()
50 acl = posix_acl_from_xattr(&init_user_ns, value, size); in jfs_get_acl()
53 return acl; in jfs_get_acl()
57 struct posix_acl *acl) in __jfs_set_acl() argument
75 if (acl) { in __jfs_set_acl()
76 size = posix_acl_xattr_size(acl->a_count); in __jfs_set_acl()
80 rc = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __jfs_set_acl()
89 set_cached_acl(inode, type, acl); in __jfs_set_acl()
94 int jfs_set_acl(struct inode *inode, struct posix_acl *acl, int type) in jfs_set_acl() argument
103 if (type == ACL_TYPE_ACCESS && acl) { in jfs_set_acl()
104 rc = posix_acl_update_mode(inode, &mode, &acl); in jfs_set_acl()
110 rc = __jfs_set_acl(tid, inode, type, acl); in jfs_set_acl()
127 struct posix_acl *default_acl, *acl; in jfs_init_acl() local
130 rc = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in jfs_init_acl()
141 if (acl) { in jfs_init_acl()
143 rc = __jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, acl); in jfs_init_acl()
144 posix_acl_release(acl); in jfs_init_acl()