Lines Matching refs:acl
32 struct posix_acl *acl; in jfs_get_acl() local
37 acl = get_cached_acl(inode, type); in jfs_get_acl()
38 if (acl != ACL_NOT_CACHED) in jfs_get_acl()
39 return acl; in jfs_get_acl()
63 acl = NULL; in jfs_get_acl()
65 acl = ERR_PTR(size); in jfs_get_acl()
67 acl = posix_acl_from_xattr(&init_user_ns, value, size); in jfs_get_acl()
70 if (!IS_ERR(acl)) in jfs_get_acl()
71 set_cached_acl(inode, type, acl); in jfs_get_acl()
72 return acl; in jfs_get_acl()
76 struct posix_acl *acl) in __jfs_set_acl() argument
86 if (acl) { in __jfs_set_acl()
87 rc = posix_acl_equiv_mode(acl, &inode->i_mode); in __jfs_set_acl()
93 acl = NULL; in __jfs_set_acl()
103 if (acl) { in __jfs_set_acl()
104 size = posix_acl_xattr_size(acl->a_count); in __jfs_set_acl()
108 rc = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __jfs_set_acl()
117 set_cached_acl(inode, type, acl); in __jfs_set_acl()
122 int jfs_set_acl(struct inode *inode, struct posix_acl *acl, int type) in jfs_set_acl() argument
129 rc = __jfs_set_acl(tid, inode, type, acl); in jfs_set_acl()
139 struct posix_acl *default_acl, *acl; in jfs_init_acl() local
142 rc = posix_acl_create(dir, &inode->i_mode, &default_acl, &acl); in jfs_init_acl()
151 if (acl) { in jfs_init_acl()
153 rc = __jfs_set_acl(tid, inode, ACL_TYPE_ACCESS, acl); in jfs_init_acl()
154 posix_acl_release(acl); in jfs_init_acl()