Lines Matching defs:inode
13 struct posix_acl *orangefs_get_acl(struct inode *inode, int type)
42 "inode %pU, key %s, type %d\n",
43 get_khandle_from_ino(inode),
46 ret = orangefs_inode_getxattr(inode, key, value,
54 gossip_err("inode %pU retrieving acl's failed with error %d\n",
55 get_khandle_from_ino(inode),
64 static int __orangefs_set_acl(struct inode *inode, struct posix_acl *acl,
85 "%s: inode %pU, key %s type %d\n",
86 __func__, get_khandle_from_ino(inode),
110 error = orangefs_inode_setxattr(inode, name, value, size, 0);
115 set_cached_acl(inode, type, acl);
119 int orangefs_set_acl(struct inode *inode, struct posix_acl *acl, int type)
135 error = posix_acl_update_mode(inode, &iattr.ia_mode, &acl);
143 if (inode->i_mode != iattr.ia_mode)
148 rc = __orangefs_set_acl(inode, acl, type);
151 rc = __orangefs_setattr(inode, &iattr);
156 int orangefs_init_acl(struct inode *inode, struct inode *dir)
159 umode_t mode = inode->i_mode;
168 error = __orangefs_set_acl(inode, default_acl,
172 inode->i_default_acl = NULL;
177 error = __orangefs_set_acl(inode, acl, ACL_TYPE_ACCESS);
180 inode->i_acl = NULL;
183 /* If mode of the inode was changed, then do a forcible ->setattr */
184 if (mode != inode->i_mode) {
186 inode->i_mode = mode;
189 __orangefs_setattr(inode, &iattr);