• Home
  • Raw
  • Download

Lines Matching refs:rc

180 	int rc, xprefix;  in jffs2_get_acl()  local
195 rc = do_jffs2_getxattr(inode, xprefix, "", NULL, 0); in jffs2_get_acl()
196 if (rc > 0) { in jffs2_get_acl()
197 value = kmalloc(rc, GFP_KERNEL); in jffs2_get_acl()
200 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc); in jffs2_get_acl()
202 if (rc > 0) { in jffs2_get_acl()
203 acl = jffs2_acl_from_medium(value, rc); in jffs2_get_acl()
204 } else if (rc == -ENODATA || rc == -ENOSYS) { in jffs2_get_acl()
207 acl = ERR_PTR(rc); in jffs2_get_acl()
217 int rc; in __jffs2_set_acl() local
224 rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0); in __jffs2_set_acl()
225 if (!value && rc == -ENODATA) in __jffs2_set_acl()
226 rc = 0; in __jffs2_set_acl()
229 return rc; in __jffs2_set_acl()
235 int rc, xprefix; in jffs2_set_acl() local
243 rc = posix_acl_update_mode(&init_user_ns, inode, &mode, in jffs2_set_acl()
245 if (rc) in jffs2_set_acl()
246 return rc; in jffs2_set_acl()
253 rc = jffs2_do_setattr(inode, &attr); in jffs2_set_acl()
254 if (rc < 0) in jffs2_set_acl()
255 return rc; in jffs2_set_acl()
267 rc = __jffs2_set_acl(inode, xprefix, acl); in jffs2_set_acl()
268 if (!rc) in jffs2_set_acl()
270 return rc; in jffs2_set_acl()
276 int rc; in jffs2_init_acl_pre() local
280 rc = posix_acl_create(dir_i, i_mode, &default_acl, &acl); in jffs2_init_acl_pre()
281 if (rc) in jffs2_init_acl_pre()
282 return rc; in jffs2_init_acl_pre()
297 int rc; in jffs2_init_acl_post() local
300 rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_DEFAULT, inode->i_default_acl); in jffs2_init_acl_post()
301 if (rc) in jffs2_init_acl_post()
302 return rc; in jffs2_init_acl_post()
306 rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_ACCESS, inode->i_acl); in jffs2_init_acl_post()
307 if (rc) in jffs2_init_acl_post()
308 return rc; in jffs2_init_acl_post()