@@ -134,7 +134,7 @@ ext4_iget_acl(struct inode *inode, struct posix_acl **i_acl)
134134 if (acl ) {
135135 spin_lock (& inode -> i_lock );
136136 acl = * i_acl ;
137- if (acl != EXT4_ACL_NOT_CACHED )
137+ if (acl != ACL_NOT_CACHED )
138138 acl = posix_acl_dup (acl );
139139 spin_unlock (& inode -> i_lock );
140140 }
@@ -147,7 +147,7 @@ ext4_iset_acl(struct inode *inode, struct posix_acl **i_acl,
147147 struct posix_acl * acl )
148148{
149149 spin_lock (& inode -> i_lock );
150- if (* i_acl != EXT4_ACL_NOT_CACHED )
150+ if (* i_acl != ACL_NOT_CACHED )
151151 posix_acl_release (* i_acl );
152152 * i_acl = posix_acl_dup (acl );
153153 spin_unlock (& inode -> i_lock );
@@ -161,7 +161,6 @@ ext4_iset_acl(struct inode *inode, struct posix_acl **i_acl,
161161static struct posix_acl *
162162ext4_get_acl (struct inode * inode , int type )
163163{
164- struct ext4_inode_info * ei = EXT4_I (inode );
165164 int name_index ;
166165 char * value = NULL ;
167166 struct posix_acl * acl ;
@@ -172,15 +171,15 @@ ext4_get_acl(struct inode *inode, int type)
172171
173172 switch (type ) {
174173 case ACL_TYPE_ACCESS :
175- acl = ext4_iget_acl (inode , & ei -> i_acl );
176- if (acl != EXT4_ACL_NOT_CACHED )
174+ acl = ext4_iget_acl (inode , & inode -> i_acl );
175+ if (acl != ACL_NOT_CACHED )
177176 return acl ;
178177 name_index = EXT4_XATTR_INDEX_POSIX_ACL_ACCESS ;
179178 break ;
180179
181180 case ACL_TYPE_DEFAULT :
182- acl = ext4_iget_acl (inode , & ei -> i_default_acl );
183- if (acl != EXT4_ACL_NOT_CACHED )
181+ acl = ext4_iget_acl (inode , & inode -> i_default_acl );
182+ if (acl != ACL_NOT_CACHED )
184183 return acl ;
185184 name_index = EXT4_XATTR_INDEX_POSIX_ACL_DEFAULT ;
186185 break ;
@@ -206,11 +205,11 @@ ext4_get_acl(struct inode *inode, int type)
206205 if (!IS_ERR (acl )) {
207206 switch (type ) {
208207 case ACL_TYPE_ACCESS :
209- ext4_iset_acl (inode , & ei -> i_acl , acl );
208+ ext4_iset_acl (inode , & inode -> i_acl , acl );
210209 break ;
211210
212211 case ACL_TYPE_DEFAULT :
213- ext4_iset_acl (inode , & ei -> i_default_acl , acl );
212+ ext4_iset_acl (inode , & inode -> i_default_acl , acl );
214213 break ;
215214 }
216215 }
@@ -226,7 +225,6 @@ static int
226225ext4_set_acl (handle_t * handle , struct inode * inode , int type ,
227226 struct posix_acl * acl )
228227{
229- struct ext4_inode_info * ei = EXT4_I (inode );
230228 int name_index ;
231229 void * value = NULL ;
232230 size_t size = 0 ;
@@ -274,11 +272,11 @@ ext4_set_acl(handle_t *handle, struct inode *inode, int type,
274272 if (!error ) {
275273 switch (type ) {
276274 case ACL_TYPE_ACCESS :
277- ext4_iset_acl (inode , & ei -> i_acl , acl );
275+ ext4_iset_acl (inode , & inode -> i_acl , acl );
278276 break ;
279277
280278 case ACL_TYPE_DEFAULT :
281- ext4_iset_acl (inode , & ei -> i_default_acl , acl );
279+ ext4_iset_acl (inode , & inode -> i_default_acl , acl );
282280 break ;
283281 }
284282 }
0 commit comments