Lines Matching defs:inode
22 #include "inode.h"
40 static struct posix_acl *__gfs2_get_acl(struct inode *inode, int type)
42 struct gfs2_inode *ip = GFS2_I(inode);
60 struct posix_acl *gfs2_get_acl(struct inode *inode, int type)
62 struct gfs2_inode *ip = GFS2_I(inode);
74 acl = __gfs2_get_acl(inode, type);
80 int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type)
100 error = __gfs2_xattr_set(inode, name, data, len, 0, GFS2_EATYPE_SYS);
103 set_cached_acl(inode, type, acl);
109 int gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type)
111 struct gfs2_inode *ip = GFS2_I(inode);
117 if (acl && acl->a_count > GFS2_ACL_MAX_ENTRIES(GFS2_SB(inode)))
131 mode = inode->i_mode;
133 ret = posix_acl_update_mode(inode, &mode, &acl);
138 ret = __gfs2_set_acl(inode, acl, type);
139 if (!ret && mode != inode->i_mode) {
140 inode->i_ctime = current_time(inode);
141 inode->i_mode = mode;
142 mark_inode_dirty(inode);