@@ -247,7 +247,6 @@ struct inode *gfs2_inode_lookup(struct super_block *sb,
247247
248248static int gfs2_dinode_in (struct gfs2_inode * ip , const void * buf )
249249{
250- struct gfs2_dinode_host * di = & ip -> i_di ;
251250 const struct gfs2_dinode * str = buf ;
252251 struct timespec atime ;
253252 u16 height , depth ;
@@ -288,7 +287,7 @@ static int gfs2_dinode_in(struct gfs2_inode *ip, const void *buf)
288287 ip -> i_goal = be64_to_cpu (str -> di_goal_meta );
289288 ip -> i_generation = be64_to_cpu (str -> di_generation );
290289
291- di -> di_flags = be32_to_cpu (str -> di_flags );
290+ ip -> i_diskflags = be32_to_cpu (str -> di_flags );
292291 gfs2_set_inode_flags (& ip -> i_inode );
293292 height = be16_to_cpu (str -> di_height );
294293 if (unlikely (height > GFS2_MAX_META_HEIGHT ))
@@ -789,11 +788,11 @@ static void init_dinode(struct gfs2_inode *dip, struct gfs2_glock *gl,
789788 di -> di_flags = 0 ;
790789
791790 if (S_ISREG (mode )) {
792- if ((dip -> i_di . di_flags & GFS2_DIF_INHERIT_JDATA ) ||
791+ if ((dip -> i_diskflags & GFS2_DIF_INHERIT_JDATA ) ||
793792 gfs2_tune_get (sdp , gt_new_files_jdata ))
794793 di -> di_flags |= cpu_to_be32 (GFS2_DIF_JDATA );
795794 } else if (S_ISDIR (mode )) {
796- di -> di_flags |= cpu_to_be32 (dip -> i_di . di_flags &
795+ di -> di_flags |= cpu_to_be32 (dip -> i_diskflags &
797796 GFS2_DIF_INHERIT_JDATA );
798797 }
799798
@@ -1241,7 +1240,6 @@ int gfs2_setattr_simple(struct gfs2_inode *ip, struct iattr *attr)
12411240
12421241void gfs2_dinode_out (const struct gfs2_inode * ip , void * buf )
12431242{
1244- const struct gfs2_dinode_host * di = & ip -> i_di ;
12451243 struct gfs2_dinode * str = buf ;
12461244
12471245 str -> di_header .mh_magic = cpu_to_be32 (GFS2_MAGIC );
@@ -1265,10 +1263,10 @@ void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf)
12651263 str -> di_goal_data = cpu_to_be64 (ip -> i_goal );
12661264 str -> di_generation = cpu_to_be64 (ip -> i_generation );
12671265
1268- str -> di_flags = cpu_to_be32 (di -> di_flags );
1266+ str -> di_flags = cpu_to_be32 (ip -> i_diskflags );
12691267 str -> di_height = cpu_to_be16 (ip -> i_height );
12701268 str -> di_payload_format = cpu_to_be32 (S_ISDIR (ip -> i_inode .i_mode ) &&
1271- !(ip -> i_di . di_flags & GFS2_DIF_EXHASH ) ?
1269+ !(ip -> i_diskflags & GFS2_DIF_EXHASH ) ?
12721270 GFS2_FORMAT_DE : 0 );
12731271 str -> di_depth = cpu_to_be16 (ip -> i_depth );
12741272 str -> di_entries = cpu_to_be32 (ip -> i_entries );
@@ -1281,8 +1279,6 @@ void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf)
12811279
12821280void gfs2_dinode_print (const struct gfs2_inode * ip )
12831281{
1284- const struct gfs2_dinode_host * di = & ip -> i_di ;
1285-
12861282 printk (KERN_INFO " no_formal_ino = %llu\n" ,
12871283 (unsigned long long )ip -> i_no_formal_ino );
12881284 printk (KERN_INFO " no_addr = %llu\n" ,
@@ -1293,7 +1289,7 @@ void gfs2_dinode_print(const struct gfs2_inode *ip)
12931289 (unsigned long long )gfs2_get_inode_blocks (& ip -> i_inode ));
12941290 printk (KERN_INFO " i_goal = %llu\n" ,
12951291 (unsigned long long )ip -> i_goal );
1296- printk (KERN_INFO " di_flags = 0x%.8X\n" , di -> di_flags );
1292+ printk (KERN_INFO " i_diskflags = 0x%.8X\n" , ip -> i_diskflags );
12971293 printk (KERN_INFO " i_height = %u\n" , ip -> i_height );
12981294 printk (KERN_INFO " i_depth = %u\n" , ip -> i_depth );
12991295 printk (KERN_INFO " i_entries = %u\n" , ip -> i_entries );
0 commit comments