Lines Matching refs:rc
180 int rc, xprefix; in jffs2_get_acl() local
192 rc = do_jffs2_getxattr(inode, xprefix, "", NULL, 0); in jffs2_get_acl()
193 if (rc > 0) { in jffs2_get_acl()
194 value = kmalloc(rc, GFP_KERNEL); in jffs2_get_acl()
197 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc); in jffs2_get_acl()
199 if (rc > 0) { in jffs2_get_acl()
200 acl = jffs2_acl_from_medium(value, rc); in jffs2_get_acl()
201 } else if (rc == -ENODATA || rc == -ENOSYS) { in jffs2_get_acl()
204 acl = ERR_PTR(rc); in jffs2_get_acl()
214 int rc; in __jffs2_set_acl() local
221 rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0); in __jffs2_set_acl()
222 if (!value && rc == -ENODATA) in __jffs2_set_acl()
223 rc = 0; in __jffs2_set_acl()
226 return rc; in __jffs2_set_acl()
231 int rc, xprefix; in jffs2_set_acl() local
239 rc = posix_acl_update_mode(inode, &mode, &acl); in jffs2_set_acl()
240 if (rc) in jffs2_set_acl()
241 return rc; in jffs2_set_acl()
248 rc = jffs2_do_setattr(inode, &attr); in jffs2_set_acl()
249 if (rc < 0) in jffs2_set_acl()
250 return rc; in jffs2_set_acl()
262 rc = __jffs2_set_acl(inode, xprefix, acl); in jffs2_set_acl()
263 if (!rc) in jffs2_set_acl()
265 return rc; in jffs2_set_acl()
271 int rc; in jffs2_init_acl_pre() local
275 rc = posix_acl_create(dir_i, i_mode, &default_acl, &acl); in jffs2_init_acl_pre()
276 if (rc) in jffs2_init_acl_pre()
277 return rc; in jffs2_init_acl_pre()
292 int rc; in jffs2_init_acl_post() local
295 rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_DEFAULT, inode->i_default_acl); in jffs2_init_acl_post()
296 if (rc) in jffs2_init_acl_post()
297 return rc; in jffs2_init_acl_post()
301 rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_ACCESS, inode->i_acl); in jffs2_init_acl_post()
302 if (rc) in jffs2_init_acl_post()
303 return rc; in jffs2_init_acl_post()