@@ -128,10 +128,10 @@ ext2_acl_to_disk(const struct posix_acl *acl, size_t *size)
128128static inline struct posix_acl *
129129ext2_iget_acl (struct inode * inode , struct posix_acl * * i_acl )
130130{
131- struct posix_acl * acl = EXT2_ACL_NOT_CACHED ;
131+ struct posix_acl * acl = ACL_NOT_CACHED ;
132132
133133 spin_lock (& inode -> i_lock );
134- if (* i_acl != EXT2_ACL_NOT_CACHED )
134+ if (* i_acl != ACL_NOT_CACHED )
135135 acl = posix_acl_dup (* i_acl );
136136 spin_unlock (& inode -> i_lock );
137137
@@ -143,7 +143,7 @@ ext2_iset_acl(struct inode *inode, struct posix_acl **i_acl,
143143 struct posix_acl * acl )
144144{
145145 spin_lock (& inode -> i_lock );
146- if (* i_acl != EXT2_ACL_NOT_CACHED )
146+ if (* i_acl != ACL_NOT_CACHED )
147147 posix_acl_release (* i_acl );
148148 * i_acl = posix_acl_dup (acl );
149149 spin_unlock (& inode -> i_lock );
@@ -155,7 +155,6 @@ ext2_iset_acl(struct inode *inode, struct posix_acl **i_acl,
155155static struct posix_acl *
156156ext2_get_acl (struct inode * inode , int type )
157157{
158- struct ext2_inode_info * ei = EXT2_I (inode );
159158 int name_index ;
160159 char * value = NULL ;
161160 struct posix_acl * acl ;
@@ -166,15 +165,15 @@ ext2_get_acl(struct inode *inode, int type)
166165
167166 switch (type ) {
168167 case ACL_TYPE_ACCESS :
169- acl = ext2_iget_acl (inode , & ei -> i_acl );
170- if (acl != EXT2_ACL_NOT_CACHED )
168+ acl = ext2_iget_acl (inode , & inode -> i_acl );
169+ if (acl != ACL_NOT_CACHED )
171170 return acl ;
172171 name_index = EXT2_XATTR_INDEX_POSIX_ACL_ACCESS ;
173172 break ;
174173
175174 case ACL_TYPE_DEFAULT :
176- acl = ext2_iget_acl (inode , & ei -> i_default_acl );
177- if (acl != EXT2_ACL_NOT_CACHED )
175+ acl = ext2_iget_acl (inode , & inode -> i_default_acl );
176+ if (acl != ACL_NOT_CACHED )
178177 return acl ;
179178 name_index = EXT2_XATTR_INDEX_POSIX_ACL_DEFAULT ;
180179 break ;
@@ -200,11 +199,11 @@ ext2_get_acl(struct inode *inode, int type)
200199 if (!IS_ERR (acl )) {
201200 switch (type ) {
202201 case ACL_TYPE_ACCESS :
203- ext2_iset_acl (inode , & ei -> i_acl , acl );
202+ ext2_iset_acl (inode , & inode -> i_acl , acl );
204203 break ;
205204
206205 case ACL_TYPE_DEFAULT :
207- ext2_iset_acl (inode , & ei -> i_default_acl , acl );
206+ ext2_iset_acl (inode , & inode -> i_default_acl , acl );
208207 break ;
209208 }
210209 }
@@ -217,7 +216,6 @@ ext2_get_acl(struct inode *inode, int type)
217216static int
218217ext2_set_acl (struct inode * inode , int type , struct posix_acl * acl )
219218{
220- struct ext2_inode_info * ei = EXT2_I (inode );
221219 int name_index ;
222220 void * value = NULL ;
223221 size_t size = 0 ;
@@ -266,11 +264,11 @@ ext2_set_acl(struct inode *inode, int type, struct posix_acl *acl)
266264 if (!error ) {
267265 switch (type ) {
268266 case ACL_TYPE_ACCESS :
269- ext2_iset_acl (inode , & ei -> i_acl , acl );
267+ ext2_iset_acl (inode , & inode -> i_acl , acl );
270268 break ;
271269
272270 case ACL_TYPE_DEFAULT :
273- ext2_iset_acl (inode , & ei -> i_default_acl , acl );
271+ ext2_iset_acl (inode , & inode -> i_default_acl , acl );
274272 break ;
275273 }
276274 }
0 commit comments