Lines Matching refs:inode
40 static struct posix_acl *__gfs2_get_acl(struct inode *inode, int type) in __gfs2_get_acl() argument
42 struct gfs2_inode *ip = GFS2_I(inode); in __gfs2_get_acl()
60 struct posix_acl *gfs2_get_acl(struct inode *inode, int type, bool rcu) in gfs2_get_acl() argument
62 struct gfs2_inode *ip = GFS2_I(inode); in gfs2_get_acl()
77 acl = __gfs2_get_acl(inode, type); in gfs2_get_acl()
83 int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type) in __gfs2_set_acl() argument
103 error = __gfs2_xattr_set(inode, name, data, len, 0, GFS2_EATYPE_SYS); in __gfs2_set_acl()
106 set_cached_acl(inode, type, acl); in __gfs2_set_acl()
115 struct inode *inode = d_inode(dentry); in gfs2_set_acl() local
116 struct gfs2_inode *ip = GFS2_I(inode); in gfs2_set_acl()
122 if (acl && acl->a_count > GFS2_ACL_MAX_ENTRIES(GFS2_SB(inode))) in gfs2_set_acl()
136 mode = inode->i_mode; in gfs2_set_acl()
138 ret = posix_acl_update_mode(&nop_mnt_idmap, inode, &mode, &acl); in gfs2_set_acl()
143 ret = __gfs2_set_acl(inode, acl, type); in gfs2_set_acl()
144 if (!ret && mode != inode->i_mode) { in gfs2_set_acl()
145 inode_set_ctime_current(inode); in gfs2_set_acl()
146 inode->i_mode = mode; in gfs2_set_acl()
147 mark_inode_dirty(inode); in gfs2_set_acl()