Lines Matching defs:rc
163 int rc, xprefix;
179 rc = do_jffs2_getxattr(inode, xprefix, "", NULL, 0);
180 if (rc > 0) {
181 value = kmalloc(rc, GFP_KERNEL);
184 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc);
186 if (rc > 0) {
187 acl = jffs2_acl_from_medium(value, rc);
188 } else if (rc == -ENODATA || rc == -ENOSYS) {
191 acl = ERR_PTR(rc);
204 int rc;
211 rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0);
212 if (!value && rc == -ENODATA)
213 rc = 0;
216 return rc;
221 int rc, xprefix;
231 rc = posix_acl_equiv_mode(acl, &mode);
232 if (rc < 0)
233 return rc;
240 rc = jffs2_do_setattr(inode, &attr);
241 if (rc < 0)
242 return rc;
244 if (rc == 0)
256 rc = __jffs2_set_acl(inode, xprefix, acl);
257 if (!rc)
259 return rc;
265 int rc;
271 rc = posix_acl_permission(inode, acl, mask);
273 return rc;
281 int rc;
301 rc = posix_acl_create_masq(clone, (mode_t *)i_mode);
302 if (rc < 0) {
304 return rc;
306 if (rc > 0)
316 int rc;
319 rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_DEFAULT, inode->i_default_acl);
320 if (rc)
321 return rc;
325 rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_ACCESS, inode->i_acl);
326 if (rc)
327 return rc;
336 int rc;
347 rc = posix_acl_chmod_masq(clone, inode->i_mode);
348 if (!rc)
349 rc = jffs2_set_acl(inode, ACL_TYPE_ACCESS, clone);
351 return rc;
378 int rc;
388 rc = posix_acl_to_xattr(acl, buffer, size);
391 return rc;
398 int rc;
410 rc = posix_acl_valid(acl);
411 if (rc)
417 rc = jffs2_set_acl(dentry->d_inode, type, acl);
420 return rc;