|
@@ -318,6 +318,8 @@ static int gfs2_dinode_in(struct gfs2_inode *ip, const void *buf)
|
|
|
ip->i_generation = be64_to_cpu(str->di_generation);
|
|
|
|
|
|
ip->i_diskflags = be32_to_cpu(str->di_flags);
|
|
|
+ ip->i_eattr = be64_to_cpu(str->di_eattr);
|
|
|
+ /* i_diskflags and i_eattr must be set before gfs2_set_inode_flags() */
|
|
|
gfs2_set_inode_flags(&ip->i_inode);
|
|
|
height = be16_to_cpu(str->di_height);
|
|
|
if (unlikely(height > GFS2_MAX_META_HEIGHT))
|
|
@@ -330,7 +332,6 @@ static int gfs2_dinode_in(struct gfs2_inode *ip, const void *buf)
|
|
|
ip->i_depth = (u8)depth;
|
|
|
ip->i_entries = be32_to_cpu(str->di_entries);
|
|
|
|
|
|
- ip->i_eattr = be64_to_cpu(str->di_eattr);
|
|
|
if (S_ISREG(ip->i_inode.i_mode))
|
|
|
gfs2_set_aops(&ip->i_inode);
|
|
|
|