@@ -38,7 +38,7 @@ static inline void xattr_iter_end_final(struct xattr_iter *it)
3838
3939static int init_inode_xattrs (struct inode * inode )
4040{
41- struct erofs_vnode * const vi = EROFS_V (inode );
41+ struct erofs_inode * const vi = EROFS_I (inode );
4242 struct xattr_iter it ;
4343 unsigned int i ;
4444 struct erofs_xattr_ibody_header * ih ;
@@ -48,14 +48,14 @@ static int init_inode_xattrs(struct inode *inode)
4848 int ret = 0 ;
4949
5050 /* the most case is that xattrs of this inode are initialized. */
51- if (test_bit (EROFS_V_EA_INITED_BIT , & vi -> flags ))
51+ if (test_bit (EROFS_I_EA_INITED_BIT , & vi -> flags ))
5252 return 0 ;
5353
54- if (wait_on_bit_lock (& vi -> flags , EROFS_V_BL_XATTR_BIT , TASK_KILLABLE ))
54+ if (wait_on_bit_lock (& vi -> flags , EROFS_I_BL_XATTR_BIT , TASK_KILLABLE ))
5555 return - ERESTARTSYS ;
5656
5757 /* someone has initialized xattrs for us? */
58- if (test_bit (EROFS_V_EA_INITED_BIT , & vi -> flags ))
58+ if (test_bit (EROFS_I_EA_INITED_BIT , & vi -> flags ))
5959 goto out_unlock ;
6060
6161 /*
@@ -136,10 +136,10 @@ static int init_inode_xattrs(struct inode *inode)
136136 }
137137 xattr_iter_end (& it , atomic_map );
138138
139- set_bit (EROFS_V_EA_INITED_BIT , & vi -> flags );
139+ set_bit (EROFS_I_EA_INITED_BIT , & vi -> flags );
140140
141141out_unlock :
142- clear_and_wake_up_bit (EROFS_V_BL_XATTR_BIT , & vi -> flags );
142+ clear_and_wake_up_bit (EROFS_I_BL_XATTR_BIT , & vi -> flags );
143143 return ret ;
144144}
145145
@@ -184,7 +184,7 @@ static inline int xattr_iter_fixup(struct xattr_iter *it)
184184static int inline_xattr_iter_begin (struct xattr_iter * it ,
185185 struct inode * inode )
186186{
187- struct erofs_vnode * const vi = EROFS_V (inode );
187+ struct erofs_inode * const vi = EROFS_I (inode );
188188 struct erofs_sb_info * const sbi = EROFS_SB (inode -> i_sb );
189189 unsigned int xattr_header_sz , inline_xattr_ofs ;
190190
@@ -385,7 +385,7 @@ static int inline_getxattr(struct inode *inode, struct getxattr_iter *it)
385385
386386static int shared_getxattr (struct inode * inode , struct getxattr_iter * it )
387387{
388- struct erofs_vnode * const vi = EROFS_V (inode );
388+ struct erofs_inode * const vi = EROFS_I (inode );
389389 struct super_block * const sb = inode -> i_sb ;
390390 struct erofs_sb_info * const sbi = EROFS_SB (sb );
391391 unsigned int i ;
@@ -608,7 +608,7 @@ static int inline_listxattr(struct listxattr_iter *it)
608608static int shared_listxattr (struct listxattr_iter * it )
609609{
610610 struct inode * const inode = d_inode (it -> dentry );
611- struct erofs_vnode * const vi = EROFS_V (inode );
611+ struct erofs_inode * const vi = EROFS_I (inode );
612612 struct super_block * const sb = inode -> i_sb ;
613613 struct erofs_sb_info * const sbi = EROFS_SB (sb );
614614 unsigned int i ;
0 commit comments