Lines Matching defs:inode
176 struct posix_acl *jffs2_get_acl(struct inode *inode, int type, bool rcu)
195 rc = do_jffs2_getxattr(inode, xprefix, "", NULL, 0);
200 rc = do_jffs2_getxattr(inode, xprefix, "", value, rc);
213 static int __jffs2_set_acl(struct inode *inode, int xprefix, struct posix_acl *acl)
224 rc = do_jffs2_setxattr(inode, xprefix, "", value, size, 0);
236 struct inode *inode = d_inode(dentry);
244 rc = posix_acl_update_mode(&nop_mnt_idmap, inode, &mode,
248 if (inode->i_mode != mode) {
253 attr.ia_ctime = current_time(inode);
254 rc = jffs2_do_setattr(inode, &attr);
262 if (!S_ISDIR(inode->i_mode))
268 rc = __jffs2_set_acl(inode, xprefix, acl);
270 set_cached_acl(inode, type, acl);
274 int jffs2_init_acl_pre(struct inode *dir_i, struct inode *inode, umode_t *i_mode)
279 cache_no_acl(inode);
286 set_cached_acl(inode, ACL_TYPE_DEFAULT, default_acl);
290 set_cached_acl(inode, ACL_TYPE_ACCESS, acl);
296 int jffs2_init_acl_post(struct inode *inode)
300 if (inode->i_default_acl) {
301 rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_DEFAULT, inode->i_default_acl);
306 if (inode->i_acl) {
307 rc = __jffs2_set_acl(inode, JFFS2_XPREFIX_ACL_ACCESS, inode->i_acl);